On-Demand Revalidation not working if Server Actions are used #51504
Labels
area: app
App directory (appDir: true)
bug
Issue was opened via the bug report template.
Output (export/standalone)
Related to the the output option in `next.config.js`.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 Binaries: Node: 18.16.0 npm: 9.6.7 Yarn: 1.22.19 pnpm: N/A Relevant packages: next: 13.4.6 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 4.9.5
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Standalone mode (output: "standalone")
Link to the code that reproduces this issue or a replay of the bug
https://github.com/patshologram/revalidation-with-server-actions.git
To Reproduce
yarn
yarn build
node .next/standalone/server.js
Side-Note: I've tried to reproduce this with
13.4.7-canary.1
but I get the following exception with the latest canaryDescribe the Bug
Upon revalidation, an exception is thrown
Removing the
serverActions: true
fromnextjs.config.js
and theuse server
fromactions.ts
leads to a working revalidation.Expected Behavior
On-Demand Revalidation should work despite the activated Server Actions.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
EC2 Instance
The text was updated successfully, but these errors were encountered: