Skip to content

ISR in next does not work because of headers() usage #7664

Closed as not planned
Closed as not planned
@henninghaakonsen

Description

@henninghaakonsen

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.

@sentry/nextjs

SDK Version

7.45

Framework Version

18.2.0

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Create a page in next v13 with appDir
  2. Enable ISR by setting up generateStaticParams function

Expected Result

The page works as expected.

Actual Result

headers() is used which by default fallbacks page to dynamic SSR.

Screenshot 2023-03-30 at 10 44 50

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nextjsIssues related to the Sentry Nextjs SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions