Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appDir]: Dynamic pages with dynamic parameters rendered as static by default #45348

Open
1 task done
peterjuras opened this issue Jan 27, 2023 · 0 comments
Open
1 task done
Labels
area: app App directory (appDir: true) bug Issue was opened via the bug report template.

Comments

@peterjuras
Copy link

Verify canary release

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

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Wed Nov 23 01:01:46 UTC 2022
Binaries:
  Node: 18.13.0
  npm: 9.3.1
  Yarn: 1.22.19
  pnpm: N/A
Relevant packages:
  next: 13.1.5-canary.2
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0

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

App directory (appDir: true)

Link to the code that reproduces this issue

https://github.com/peterjuras/nextjs-13-wrong-static-rendering

To Reproduce

  1. Clone the repository
  2. Run yarn build

Describe the Bug

In my project, the [slug]/page is rendered as static, although the cookies function is called. According to the docs, this should mark the page as dynamic.

Expected Behavior

The [slug] page should be marked as dynamic.

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@peterjuras peterjuras added the bug Issue was opened via the bug report template. label Jan 27, 2023
@balazsorban44 balazsorban44 added the area: app App directory (appDir: true) label Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: app App directory (appDir: true) bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

2 participants