-
Notifications
You must be signed in to change notification settings - Fork 39
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
"Server Actions" are not supported with Static Export #1312
Comments
👍 Same issue here. Tried to replace As the Server Actions is used for live editing (as far as I understand this), an option to disable that would be great for static export. I know you've got plenty to do right now... but this is kinda blocking my projects right now. :( |
I recommend going version down to |
That could be an option, but results in rewriting parts of the website... :( |
Workaround:
|
Thanks! That only works locally though... but I run the build as GitHub Action. :( |
Try to add it as a step in GitHub Action job (after installing dependencies but before building)
Edit: corrected |
@filmic ah! thats a good idea. thanks |
Thanks for workaround @filmic 🙌 |
An alternative to @filmic's approach would be to use patch-package. That way all devs have the same code-base and can build locally as well. For |
Describe the issue you're facing
My team is facing an issue where
storyblok SDK
is blocking the static export of our application with messageServer Actions are not supported with static export
. I tried to downgrade thestoryblok/react
package to version3.0.10
and it solved the issue. Can we opt out of usingserver actions
with the latest package?Edit:
I found out that
StoryblokStory
was usingserver actions
under the hood, I replaced it withStoryblokServerComponent
but build is still failing. Istree-shaking
not working with the package?Reproduction
NA
Steps to reproduce
{ "output": "export" }
tonext.config.js
System Info
Used Package Manager
pnpm
Error logs (Optional)
No response
Validations
The text was updated successfully, but these errors were encountered: