这是indexloc提供的服务,不要输入任何密码
Skip to content

webframeworks experiment 404 handling incorrect #8035

@MidnightLightning

Description

@MidnightLightning

When running a NextJS app using "App Routing" in a Firebase emulator, it doesn't handle 404 page generation properly. The default NextJS 404 page generates a "This page could not be found" error styled in the middle of the page. When running in Firebase Emulator suite, the 404 page generates as . This makes it impossible to test custom 404 page appearances for a NextJS application within the Firebase emulator.

[REQUIRED] Environment info

firebase-tools: 13.24.2

Platform: Docker running inside macOS

[REQUIRED] Test case

https://gitlab.com/MidnightLightning/firebase-404-test

[REQUIRED] Steps to reproduce

Run docker compose up, then visit http://localhost:25602/foobarbaz.

[REQUIRED] Expected behavior

To see the NextJS custom 404 page (text "This page could not be found" in the center of screen)

[REQUIRED] Actual behavior

A plain textual response of "Cannot GET /pathname"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions