Skip to content

Firebase doesn't respect Next.js error pages #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alekseykarpenko opened this issue Feb 10, 2023 · 0 comments
Open

Firebase doesn't respect Next.js error pages #63

alekseykarpenko opened this issue Feb 10, 2023 · 0 comments

Comments

@alekseykarpenko
Copy link

As described in the summary,
when serving Firebase+Next project build with firebase serve or firebase emulators:start --only hosting,
Firebase shows general 'Not found' or 'Cannot GET ...' errors with no styling instead of generated by Next.js 404 page.

STR

  1. firebase init -> hosting + emulator for hosting
  2. firebase serve or firebase emulators:start --only hosting
  3. Visit localhost:5000/whatever

AB
image
EB
Error page should be the same as when you run next dev

Env:
node: v16.19.0
firebase-tools: 11.22.0
next: 13.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant