Next.js Discord

Discord Forum

Issues with getting build files

Unanswered
Broad-snouted Caiman posted this in #help-forum
Open in Discord
Broad-snouted CaimanOP
I ran the command "npm run build" to get build files, but I got this error: "> Server Actions are not supported with static export.". How do I resolve the error and get the build files?

2 Replies

Dwarf Hotot
Show the build error code
you can't use server actions or anything from the server when you static export