Skip to content

NextJS integration thinks not-found page is non-static #7006

@matthewrj

Description

@matthewrj

[REQUIRED] Environment info

firebase-tools: 13.7.2

Platform: macOS

[REQUIRED] Test case

Run firebase deploy --only hosting on a nextjs version 14.2.0 project.

[REQUIRED] Steps to reproduce

Run firebase deploy --only hosting on a nextjs version 14.2.0 project.

[REQUIRED] Expected behavior

No cloud function is created.

[REQUIRED] Actual behavior

Firebase creates a cloud function for the not found page:

  Building a Cloud Function to run this application. This is needed due to:
   • non-static component /_not-found/page

This does not happen with nextjs 14.1.4 so something in 14.2.0 has changed in nextjs that causes firebase to think the not found page is non-static.

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