Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
Metadata
Assignees
Type
Projects
Status
Waiting for: Community
Activity