Skip to content

Commit

Permalink
fix: ts error
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jun 21, 2023
1 parent 489a96d commit 6b91a92
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ NEXT_PUBLIC_GATEWAY_URL=http://jxhome.shizuri.net:52333

SENTRY=true
NEXT_PUBLIC_SENTRY_DSN=https://f7660879c3c645e99e9c040aef4072ba@o4505266479366144.ingest.sentry.io/4505339474870272
NEXT_PUBLIC_SENTRY_AUTH_TOKEN=7c9c58e200f6488791669ab910cf168f685c46fd179240d79630d8e7ba233030
SENTRY_AUTH_TOKEN=7c9c58e200f6488791669ab910cf168f685c46fd179240d79630d8e7ba233030

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_cmVzb2x2ZWQtd2FydGhvZy0yNC5jbGVyay5hY2NvdW50cy5kZXYk
CLERK_SECRET_KEY=sk_test_qOKIV9c9sIwzWP4SPhcOk5BDBfHWoG3nqZ54vzES8q
Expand Down
4 changes: 4 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import type { FC, PropsWithChildren } from 'react'

declare global {
export type NextErrorProps = {
reset(): void
error: Error
}
export type NextPageParams<P extends {}, Props = {}> = PropsWithChildren<
{
params: P
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let nextConfig = {
org: 'inneis-site',

project: 'springtide',
authToken: process.env.NEXT_PUBLIC_SENTRY_AUTH_TOKEN,
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/posts/(post-detail)/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { Container } from './Container'

export default ({ error, reset }) => {
export default ({ error, reset }: NextErrorProps) => {
// TODO
return <Container>Post Fetch error</Container>
}

1 comment on commit 6b91a92

@vercel
Copy link

@vercel vercel bot commented on 6b91a92 Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

springtide – ./

springtide-innei.vercel.app
springtide-git-main-innei.vercel.app
innei.in
springtide.vercel.app

Please sign in to comment.