-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
getsentry/sentry
#47441Description
Core or SDK?
Platform/SDK
Which part? Which one?
@sentry/nextjs
Description
It's very common to deploy nextjs apps on Vercel, and the SDK has certain Vercel-specific requirements and behaviors, which we should document in a central location.
- Before auto-wrapping was turned on in 7.15, non-API pages weren't traced when deployed on Vercel.
- The webpack plugin is disabled in dev and preview environments on Vercel. (Can override with
disableClientWebpackPlugin: falseand/ordisableServerWebpackPlugin: false. If so, have to make env vars work in those environments, too. That said, we should also discourage people from doing this. See fix(nextjs): Don't run webpack plugin on non-prod Vercel deployments sentry-javascript#5603, fix(vercel): add sentry env vars to all default environments in Vercel sentry#37649, and [nextjs] Improve webpack plugin enablement and warnings sentry-javascript#5619.) - We should link to the Vercel integration docs (https://docs.sentry.io/product/integrations/deployment/vercel/).
Suggested Solution
See above.
Metadata
Metadata
Assignees
Labels
No labels