Next.js Discord

Discord Forum

Using Server Actions on Forwarded Ports (Codespaces)

Unanswered
aarvin roshin posted this in #help-forum
Open in Discord
Currently, when using server actions while an app is running on GitHub Codespaces, Next.js throws an error because the Codespace's forwarded port foo.github.dev doesn't match localhost:3000. How do I fix this? I've already looked at previous GitHub issues, but their solutions (like allowOrigins) don't work.

0 Replies