Using export dynamic = 'auto' opts you into dynamic rendering
Open
Nobody has claimed this yet.
bug
not stale
Performance
Runtime
- Dominant language
- JavaScript
- Stars
- 142k
- Forks
- 32.4k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 351
Description
Link to the code that reproduces this issue
https://github.com/MangoMarcus/nextjs-dynamic-auto
To Reproduce
- Clone the repository. There's a seperate route for each of the options for dynamic, plus one for none.
- Deploy to Vercel
- Check the "Deployment summary" under the deployment.
- The
/noneroute is an ISR function, but/autoisn't
Current vs. Expected behavior
I expected the default for dynamic to be 'auto', but using that actually opts you in to dynamic rendering - which is not the same behavior as omitting the export altogether.
Provide environment information
Operating System:
Platform: macOS
Chip: Apple M1 Pro
Version: macOS 14.4
Binaries:
Node: 20.2.0
npm: 9.6.6
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 14.2.3
eslint-config-next: N/A
react: 18.3.1
react-dom: 18.3.1
typescript: 5.4.5
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Performance, Runtime
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked nextjs-dynamic-auto reproduction, deploy it to Vercel, and compare the /auto and /none routes in the deployment summary. Trace the route-segment dynamic configuration and rendering behavior; the issue is done when explicitly setting dynamic='auto' has the intended documented behavior relative to omitting the export.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nextjs, react
- Domain
- performance, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100