-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Ref update next.js config #3472
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sentry/sentry-docs/DvjYvJJs9xGouiB38JXFSvQsnDM1 |
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.
tbh I'd use this syntax. Sentry.withSentry
looks redundant, and withSentry
says it all.
import * as Sentry from '@sentry/nextjs'; | ||
|
||
const handler = async (req, res) => { | ||
// throw new Error('API Test 4') |
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.
Either specify what this code should do, or remove the comment imo
Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
Co-authored-by: iker barriocanal <32816711+iker-barriocanal@users.noreply.github.com>
Co-authored-by: Fiona <61481573+PeloWriter@users.noreply.github.com>
This updates the next.js docs to tell our users they need to wrap API calls manually.