Skip to content

"Server Actions" are not supported with Static Export #1312

Open
@zawadzki-dawid

Description

@zawadzki-dawid

Describe the issue you're facing

My team is facing an issue where storyblok SDK is blocking the static export of our application with message Server Actions are not supported with static export. I tried to downgrade the storyblok/react package to version 3.0.10 and it solved the issue. Can we opt out of using server actions with the latest package?

Edit:
I found out that StoryblokStory was using server actions under the hood, I replaced it with StoryblokServerComponent but build is still failing. Is tree-shaking not working with the package?

Screenshot 2025-01-09 at 20 55 40

Reproduction

NA

Steps to reproduce

  • Add to { "output": "export" } to next.config.js
  • Use SDK somewhere in code
  • Build next app

System Info

"@storyblok/react": "^4.0.0"
"next": "14.12.16"
"react": "18.3.1"

Used Package Manager

pnpm

Error logs (Optional)

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-author[Issue] Awaiting further information or action from the issue authorpending-triage[Issue] Ticket is pending to be prioritised

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions