Skip to content

fix(nitro): render error.vue for direct /__nuxt_error visits - #35630

Open
Flo0806 wants to merge 2 commits into
nuxt:mainfrom
Flo0806:fix/nuxt-error-page-direct-visit
Open

Flo0806 wants to merge 2 commits into
nuxt:mainfrom
Flo0806:fix/nuxt-error-page-direct-visit

Conversation

@Flo0806

@Flo0806 Flo0806 commented Jul 18, 2026

Copy link
Copy Markdown
Member

🔗 Linked issue

Fixes: #20623

📚 Description

The guard distinguished between "internal error render" and "external direct access" based on the URL. But both use /__nuxt_error; the fix switches to using the context flag that only the internal render sets, ensuring that external access renders error.vue normally.

Tests

Added one test

@Flo0806
Flo0806 requested a review from danielroe as a code owner July 18, 2026 03:40
@github-actions github-actions Bot added 5.x 🐛 bug Something isn't working as expected labels Jul 18, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@nuxt/kit

npm i https://pkg.pr.new/@nuxt/kit@35630

@nuxt/nitro-server

npm i https://pkg.pr.new/@nuxt/nitro-server@35630

nuxt

npm i https://pkg.pr.new/nuxt@35630

@nuxt/rspack-builder

npm i https://pkg.pr.new/@nuxt/rspack-builder@35630

@nuxt/schema

npm i https://pkg.pr.new/@nuxt/schema@35630

@nuxt/vite-builder

npm i https://pkg.pr.new/@nuxt/vite-builder@35630

@nuxt/webpack-builder

npm i https://pkg.pr.new/@nuxt/webpack-builder@35630

commit: 71f7dd1

@coderabbitai

This comment has been minimized.

@codspeed

codspeed Bot commented Jul 18, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 21 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing Flo0806:fix/nuxt-error-page-direct-visit (71f7dd1) with main (1405742)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@Flo0806

Flo0806 commented Jul 18, 2026

Copy link
Copy Markdown
Member Author

I guess the error has nothing to do with my PR

This branch has not been deployed

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

Labels

5.x 🐛 bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/__nuxt_error route returns fallback 404 page

1 participant