-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
@sentry/nextjs and nextjs custom server #3782
Comments
That's not a use case we've investigated yet, so no, there aren't currently any docs. For API routes, nothing should be different - Before I give any advice on how to implement that yourself, though, I'm actually planning this sprint or next to re-evaluate the way that we do that, as there appear to be environments where it only works inconsistently. So for the moment, I'd suggest starting with your API routes (and your frontend). Once I get a better handle on whether we might take a different approach to non-API routes, I'll better be able to advise you on that score. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Instead of adopting our SDK, I suggest we treat this a combination of This will probably give up on some (small) functionality using a custom server which should be fine as a custom server itself reduces the functionality of nextjs. |
Hey @vladanpaunovic so if I only need this for api routes, will the @sentry/next package work out of the box? |
@rbabayoff I will assume that by "this" you meant a custom server. If so, then
|
Hey @vladanpaunovic , thanks for your answer. My use case is a bit more complicated - in the same app, one of my endpoints is a long running api endpoint for file uploads, which I need to run on a custom server. Everything else should work on vercel. A couple of questions:
Will this work with a custom webpack config in the next.config.js that sentry generated with
Thanks in advance |
Hey @vladanpaunovic , simplifying my question - how can I force the generation and upload of source maps to sentry while still using @sentry/nextjs and |
I think what you can do is play a bit with sentry-webpack-plugin configuration. We have a docs on source maps here https://docs.sentry.io/platforms/javascript/sourcemaps/generating/ but you can always check the repo https://github.com/getsentry/sentry-webpack-plugin |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Hi,
Are there any documentation on how to setup
@sentry/nextjs
with https://nextjs.org/docs/advanced-features/custom-server ?Thanks!
The text was updated successfully, but these errors were encountered: