Skip to content

Commit 6b91a92

Browse files
committed
fix: ts error
Signed-off-by: Innei <[email protected]>
1 parent 489a96d commit 6b91a92

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ NEXT_PUBLIC_GATEWAY_URL=http://jxhome.shizuri.net:52333
99

1010
SENTRY=true
1111
NEXT_PUBLIC_SENTRY_DSN=https://f7660879c3c645e99e9c040aef4072ba@o4505266479366144.ingest.sentry.io/4505339474870272
12-
NEXT_PUBLIC_SENTRY_AUTH_TOKEN=7c9c58e200f6488791669ab910cf168f685c46fd179240d79630d8e7ba233030
12+
SENTRY_AUTH_TOKEN=7c9c58e200f6488791669ab910cf168f685c46fd179240d79630d8e7ba233030
1313

1414
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_cmVzb2x2ZWQtd2FydGhvZy0yNC5jbGVyay5hY2NvdW50cy5kZXYk
1515
CLERK_SECRET_KEY=sk_test_qOKIV9c9sIwzWP4SPhcOk5BDBfHWoG3nqZ54vzES8q

global.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import type { FC, PropsWithChildren } from 'react'
22

33
declare global {
4+
export type NextErrorProps = {
5+
reset(): void
6+
error: Error
7+
}
48
export type NextPageParams<P extends {}, Props = {}> = PropsWithChildren<
59
{
610
params: P

next.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ let nextConfig = {
4646
org: 'inneis-site',
4747

4848
project: 'springtide',
49-
authToken: process.env.NEXT_PUBLIC_SENTRY_AUTH_TOKEN,
49+
authToken: process.env.SENTRY_AUTH_TOKEN,
5050
}),
5151
)
5252
}

src/app/posts/(post-detail)/error.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { Container } from './Container'
44

5-
export default ({ error, reset }) => {
5+
export default ({ error, reset }: NextErrorProps) => {
66
// TODO
77
return <Container>Post Fetch error</Container>
88
}

0 commit comments

Comments
 (0)