feat(nuxt): Enable server-side Sentry during nuxt dev on Nitro v3 (Nuxt 5) - #23644
Open
s1gr1d wants to merge 2 commits into
Open
feat(nuxt): Enable server-side Sentry during nuxt dev on Nitro v3 (Nuxt 5)#23644s1gr1d wants to merge 2 commits into
nuxt dev on Nitro v3 (Nuxt 5)#23644s1gr1d wants to merge 2 commits into
Conversation
s1gr1d
requested review from
mydea and
nicohrubec
and removed request for
a team
August 26, 2026 11:24
nuxt dev on Nitro v3nuxt dev on Nitro v3 (Nuxt 5)
Contributor
size-limit report 📦
|
nicohrubec
approved these changes
Aug 26, 2026
| /*! rollup-include-esm-only-end */ | ||
|
|
||
| // Nitro v3 does not bundle the Sentry server config file, so `import.meta.dev` stays undefined there |
Member
There was a problem hiding this comment.
nit: should this comment be above the isDevBuild = !!import.meta.dev line?
Member
Author
There was a problem hiding this comment.
doesn't really matter actually 🤔 but this one is more related to isNuxtDevRuntime()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Server-side Sentry did not work in
nuxt devon Nuxt 5. The SDK generates.nuxt/dev/sentry.server.config.mjsfor users to preload withnode --import, and on Nitro v3 that file was never created.Nitro v3 serves the dev server through Vite's module runner instead of bundling it, so there is no build output to emit into.
For Nitro v3, the file is written as a Nuxt template instead of a Rollup artifact. This can be done because Nuxt requires Node 22.19 or later (which allows
.ts).Nitro v2 (Nuxt v4) keeps the existing path untouched.
Needed for the E2E test: #22017