Skip to content

generateStaticParams with dynamicParams false does not show not-found page on production #54270

@smitbarmase

Description

@smitbarmase

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.17.0
      npm: 9.6.7
      Yarn: N/A
      pnpm: 8.6.9
    Relevant Packages:
      next: 13.4.19
      eslint-config-next: 13.4.18
      react: undefined
      react-dom: undefined
      typescript: 5.1.6
    Next.js Config:
      output: N/A

Which area(s) of Next.js are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

https://github.com/smitbarmase/rapp

To Reproduce

Navigate to http://localhost:3000/blog/4, which is not path in generateStaticParams.

Describe the Bug

On prod, it shows server error in my private repository. On dev, in this repository, it does not render not-found page.

Expected Behavior

It should render closest not-found in tree.

Which browser are you using? (if relevant)

Chrome

How are you deploying your application? (if relevant)

Vercel

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions