Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): fallback to static error page on server error #6697

Merged
merged 7 commits into from Aug 17, 2022

Conversation

antfu
Copy link
Member

@antfu antfu commented Aug 17, 2022

πŸ”— Linked issue

Part of #6683

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

When there is a server error, the /__nuxt_error might also fail to render, we fallback to use static HTML render in this case.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Aug 17, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 4147ee6
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62fcb0f583bbdb0008307b07

@pi0
Copy link
Member

pi0 commented Aug 17, 2022

Trying locally, the production build errors makes an infinity loop. Investigating...

image

@@ -1,7 +1,6 @@
import { withQuery } from 'ufo'
import type { NitroErrorHandler } from 'nitropack'
import type { H3Error } from 'h3'
import { importModule } from '@nuxt/kit'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielroe Do you have any idea why this wasn't caught by import protection?

@pi0 pi0 merged commit 69c281f into main Aug 17, 2022
@pi0 pi0 deleted the feat/static-error-page branch August 17, 2022 09:14
@pi0 pi0 mentioned this pull request Aug 26, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants