-
-
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
fix(nextjs): Don't crash build when auth token is missing #7427
fix(nextjs): Don't crash build when auth token is missing #7427
Conversation
size-limit report 📦
|
)} environment variable during the build.\n` | ||
}${ | ||
process.env.VERCEL | ||
? "If you're deploying to Vercel, use the Vercel integration: https://vercel.com/integrations/sentry\n" |
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.
? "If you're deploying to Vercel, use the Vercel integration: https://vercel.com/integrations/sentry\n" | |
? "If you're deploying to Vercel, use the Vercel integration to automatically set a Sentry auth token: https://vercel.com/integrations/sentry\n" |
Should we even show the above lines if we are on Vercel? It should be enough to just say, hey set the Vercel integration, thats all you need to do.
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.
Good suggestion: c86e63c Thanks!
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.
Nice!
55eef6f
to
c86e63c
Compare
Prevents Next.js builds from crashing during source maps upload when building and instead prints an error message that gives instructions on how to configure the auth token.
Because the webpack config is invoked 3 times, the message will show up 3 times. I will leave this up for a future fix.