Skip to content

Nuxt in Netlify #13697

Closed as not planned
Closed as not planned

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Package: nuxtIssues related to the Sentry Nuxt SDKStale

    Type

    Projects

    • Status

      Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions