Repository navigation
Conversation
orun.work's Preview tab shows a coding session's dev server, live from its
box: `orun preview` (orun v2.96.0) runs what a repository declares, and the
session keeps it running while it works.
- apps/web-site/component.yaml: spec.preview. It installs this app's packages
only (--filter "@site/web-site..."), then runs `next dev` alone on
127.0.0.1:3000, with a 1 GiB heap cap; the tab opens /. site-api and
mail-worker do not run; the islands that call site-api degrade to their
static messages. Next 15.0.3 has no allowedDevOrigins (15.2+) and does not
check the hot reload's origin.
- intent.yaml: preview: {component: web-site}.
- apps/web-site/next.config.mjs: experimental.serverActions.allowedOrigins for
the same hosts, in development only (NODE_ENV=development), so a Server
Action is not refused behind the preview; `next build` keeps Next's
same-origin check.
- baseline.yml: orun v2.76.0 -> v2.96.0, the first release that reads
spec.preview, so the placement's `orun validate` checks it. ci.yml (the
product's own lane pin) is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNV6SjymJBPv3nNkC4z
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
The baseline declares its live preview, so orun.work's Preview tab can show a coding session's dev server (saas-parallel-baselining PB4).
apps/web-site/component.yaml:spec.preview:intent.yaml:preview: {component: web-site}.apps/web-site/next.config.mjs:experimental.serverActions.allowedOrigins: ["*.orun-preview.app", "preview-gateway-stage.oruncloud.workers.dev"], in development only (process.env.NODE_ENV === "development"). Behind the gateway theOriginis the preview's host whilenext devseesHost: 127.0.0.1:3000, and Next refuses a Server Action from an origin it is not told about. The site has none today; this keeps one a session adds working in the preview.next buildruns withNODE_ENV=production, so production keeps its same-origin check. NoallowedDevOrigins: the key arrived in Next 15.2, and 15.0.3 does not check the hot reload's origin (its webpack HMR socket connected through the gateway stand-in)..github/workflows/baseline.yml: theblueprint-runspin, orunv2.76.0→v2.96.0, the first release that readsspec.preview, so the placement'sorun validatechecks the declaration; its comment says so.ci.yml(the product's own lane pin,v2.78.0) is unchanged.Nothing about how the baseline builds or deploys changes.
Checked
From a clean clone, with orun v2.96.0, and through a local stand-in of the preview gateway (the dev server sees a local
Hostand the browser's ownOrigin; the page is framed from a foreign origin):orun validateorun preview start --jsonreadyin 6.0 s (warm pnpm store)GET /Host+Originstraight to the dev serverorun preview stopConsole errors in the frame: Failed to load resource: net::ERR_CONNECTION_REFUSED
Notes
repo-blueprint.yamlplacesintent.yamlin01-scaffold(moduleroot-intent) andapps/web-sitein06-site(moduleweb-site). Withpreview: {component: web-site}in the intent, the repo-scale gate that closes01-scaffoldrunsorun validateon a tree that has noweb-sitecomponent yet:orun new --blueprint repo-blueprint.yaml --phase 01-scaffoldon v2.96.0 fails with✕ repo-scale gate failed: validate: preview validation failed: preview.component "web-site" names no component. A real bootstrap, which runs the latest orun phase by phase, would stop there. This repository's ownplacement.test.shplaces the whole tree at once, so it passes and does not catch it. The pin bump, the intent block and the test are kept as they are; the fix (orun tolerating a preview component a later phase places, or blueprint hooks that add the block with the UI's phase) is the owner's decision. Everything else here was checked and works.site-apiandmail-workerdo not run. The site learns site-api's origin only fromNEXT_PUBLIC_SITE_API_URL, which its build composes from the product's own workers.dev subdomain (a per-product value, not set here), so the islands that call it from the browser (views, upvotes, the subscribe and contact forms) fall back tohttp://localhost:8787, fail (ERR_CONNECTION_REFUSED, the frame's one console error) and render their static messages, as they do whenever site-api is unreachable. Everything else (launches, writing, projects, pages fromcontent/) renders.placement.test.shpass locally on orun v2.96.0. Memory: the dev server is ~0.82 GB (next-server 15.0.3 with webpack ~0.73 GB).Generated by Claude Code