This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add sentry example triggers (#103)
- Loading branch information
Julien Bouquillon
authored
Sep 29, 2022
1 parent
8842797
commit 439f13d
Showing
4 changed files
with
23 additions
and
4 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,5 +1,5 @@ | ||
NEXT_PUBLIC_SENTRY_DSN="" | ||
NEXT_PUBLIC_SENTRY_ENV="" | ||
NEXT_PUBLIC_SENTRY_DSN="https://[email protected]/68" | ||
NEXT_PUBLIC_SENTRY_ENV="dev" | ||
NEXT_PUBLIC_MATOMO_URL="" | ||
NEXT_PUBLIC_MATOMO_SITE_ID="" | ||
NEXT_PUBLIC_APP_REPOSITORY_URL="https://github.com/SocialGouv/template" | ||
|
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,9 @@ | ||
// This is an example of how to read a JSON Web Token from an API route | ||
import { NextApiRequest, NextApiResponse } from "next"; | ||
import { withSentry } from "@sentry/nextjs"; | ||
|
||
const triggerError = async (req: NextApiRequest, res: NextApiResponse) => { | ||
throw new Error("Server error :/"); | ||
}; | ||
|
||
export default withSentry(triggerError); |
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