Repository navigation
The live preview keeps Server Actions (saas-parallel-baselining PB4) - #16
Merged
Merged
Conversation
Behind orun.work's preview gateway the browser's Origin is the preview's
host while `next dev` sees a local Host, and Next.js refuses a Server
Action from an origin it is not told about ("Invalid Server Actions
request"). allowedDevOrigins does not cover that check.
- apps/web/next.config.mjs: experimental.serverActions.allowedOrigins for
the preview's hosts (*.orun-preview.app,
preview-gateway-stage.oruncloud.workers.dev), only when
NODE_ENV=development. `next build` runs with NODE_ENV=production, so the
deployed site keeps its same-origin check.
The site has no Server Action today; a coding session that adds one (a
form) keeps a working preview.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNV6SjymJBPv3nNkC4z
ruehowl
marked this pull request as ready for review
November 4, 2026 20:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-up to #15. Behind orun.work's preview gateway the browser's
Originis the preview's host whilenext devsees a localHost(127.0.0.1:3000), and Next.js refuses a Server Action whose origin it isn't told about ("Invalid Server Actions request", POST 500).allowedDevOriginsdoesn't cover that check.apps/web/next.config.mjs:experimental.serverActions.allowedOriginsfor the preview's hosts (*.orun-preview.app,preview-gateway-stage.oruncloud.workers.dev), only whenNODE_ENV === "development".next buildruns withNODE_ENV=production, so the deployed site keeps its same-origin check.The site has no Server Action today. A coding session that adds one (a form) keeps a working preview. Every Next.js baseline's preview gets the same entry.
Checked
orun preview startready in 10 s;next devlists the experiment (serverActions);GET /200; through the gateway stand-in the frame loads and an edit hot-updates in 0.5 s; ~605 MB;orun preview stopfrees the port.https://claude.ai/code/session_019PcpNV6SjymJBPv3nNkC4z
Generated by Claude Code