firebase / firebase/apphosting-adapters

Firebase doesn't respect Next.js error pages

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
478
Forks
1.5k
Avg merge
3d 22h
Merged PRs (30d)
2

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.