-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[optimize] Resource Limitation of Docker Compose [optimize] update Upstream packages
- Loading branch information
Showing
11 changed files
with
498 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
NEXT_PUBLIC_SITE_NAME=Next-Bootstrap.ts | ||
NEXT_PUBLIC_SITE_SUMMARY=React project scaffold based on TypeScript, Next.js, Bootstrap & Workbox. | ||
NEXT_PUBLIC_SITE_SUMMARY=React project scaffold based on TypeScript, Next.js, Bootstrap & Workbox. | ||
|
||
NEXT_PUBLIC_SENTRY_DSN = | ||
SENTRY_ORG = | ||
SENTRY_PROJECT = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as Sentry from '@sentry/nextjs'; | ||
import type { NextPage } from 'next'; | ||
import type { ErrorProps } from 'next/error'; | ||
import Error from 'next/error'; | ||
|
||
const CustomErrorComponent: NextPage<ErrorProps> = ({ statusCode }) => ( | ||
<Error statusCode={statusCode} /> | ||
); | ||
|
||
CustomErrorComponent.getInitialProps = async contextData => { | ||
await Sentry.captureUnderscoreErrorException(contextData); | ||
|
||
return Error.getInitialProps(contextData); | ||
}; | ||
|
||
export default process.env.NODE_ENV === 'development' || | ||
!process.env.SENTRY_AUTH_TOKEN | ||
? Error | ||
: CustomErrorComponent; |
Oops, something went wrong.
55a5cb1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for next-bootstrap-ts ready!
✅ Preview
https://next-bootstrap-41pb24krv-stevending1st.vercel.app
Built with commit 55a5cb1.
This pull request is being automatically deployed with vercel-action