Server actions forcing dynamic routes #52840
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
locked
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023 Binaries: Node: 18.16.0 npm: 9.6.7 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 13.4.10 eslint-config-next: 13.4.9 react: 18.2.0 react-dom: 18.2.0 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/bluegrv/next-js-server-actions-force-dynamic-route
To Reproduce
Building the app shows any route using a server action is forced to be dynamic
Describe the Bug
Whenever a server action is used in a component (server or client component) the corresponding route is forced to be dynamic.
There is an unanswered question in discord in regards to this: https://nextjs-forum.com/post/1118778071873486948
Expected Behavior
I would expect that the route should still be able to be static or SSG
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-1453
The text was updated successfully, but these errors were encountered: