Skip to content

Deploy stratalab.cc automatically on merge to main - #11

Merged
gothicscientist merged 1 commit into
mainfrom
claude/project-thread-wqnh2u
Nov 5, 2026
Merged

gothicscientist merged 1 commit into
mainfrom
claude/project-thread-wqnh2u

Conversation

@gothicscientist

Copy link
Copy Markdown
Owner

Requested by Bharat · project thread

Why the site went stale

stratalab.cc is the Cloudflare Pages project strata-web, which was created by direct upload (wrangler pages deploy from a laptop, per infra/azure/README.md). Direct-upload projects have no Git connection, so merges like #8 and #10 never reached the site. (main.strata-web-6ur.pages.dev returns 404: Cloudflare has never seen main.)

What this changes

  • .github/workflows/deploy-web.yml (new): on every push to main that touches apps/web/ (or a manual run), typechecks, tests, builds and runs wrangler pages deploy. It asks the Cloudflare API for the project's production branch and deploys to it, so the build lands on stratalab.cc whatever that branch is named. Then it checks the site answers 200.
  • The three NEXT_PUBLIC_* build values default to the live origins (read from the current bundle and CSP; the Supabase value is the publishable key every browser already gets). A local build with them reproduces the live connect-src exactly. Repository variables of the same name override them.
  • runtime-image.yml now builds on main instead of the merged codex/deploy-stratalab-cc branch. It only builds the image; Azure deploy stays manual.
  • Docs updated in docs/DEPLOYMENT.md §3.3 and infra/azure/README.md.

Needs two repository secrets before it can deploy

CLOUDFLARE_API_TOKEN (Account → Cloudflare Pages → Edit) and CLOUDFLARE_ACCOUNT_ID. Without them the workflow stops at its first step with a clear error.


Generated by Claude Code

The Pages project strata-web was created by direct upload, so Cloudflare
never saw pushes and the site kept serving the Nov 2 manual deploy. Add a
workflow that typechecks, tests, builds and deploys apps/web on every push
to main, to whichever branch Cloudflare reports as production. Build the
runtime image from main too, since the old deploy branch is merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HEuHRzKYJGum74qg95GMHa
@gothicscientist gothicscientist self-assigned this Nov 3, 2026
@gothicscientist
gothicscientist merged commit a281112 into main Nov 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants