Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nuxt
SDK Version
8.28.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
I am trying to use Nuxt with Sentry in Netlify. I followed all the steps in the doc and managed to integrate Sentry when Nuxt is built with the node preset.
The issue comes when Nuxt is built with the Netlify preset which creates a lambda function bundled in a single JS file.
No matter what I try, the Netlify function will only contain a single server.js file and the instrument.server.mjs will not be there
PS. Adding the --import flag to the NODE_OPTIONS env variable works and Netlify tries to load the file, but the file is not uploaded.
Expected Result
The instrument.server.mjs is uploaded in Netlify and somehow loaded using --import or NODE_OPTIONS
Actual Result
The lambda function directory contains only the bundled Nuxt code and instrument.server.mjs is missing
Related discussion
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nuxt
SDK Version
8.28.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
I am trying to use Nuxt with Sentry in Netlify. I followed all the steps in the doc and managed to integrate Sentry when Nuxt is built with the
nodepreset.The issue comes when Nuxt is built with the Netlify preset which creates a lambda function bundled in a single JS file.
No matter what I try, the Netlify function will only contain a single
server.jsfile and theinstrument.server.mjswill not be therePS. Adding the
--importflag to theNODE_OPTIONSenv variable works and Netlify tries to load the file, but the file is not uploaded.Expected Result
The
instrument.server.mjsis uploaded in Netlify and somehow loaded using--importorNODE_OPTIONSActual Result
The lambda function directory contains only the bundled Nuxt code and
instrument.server.mjsis missingRelated discussion