Skip to content

Deploy petroviz to Cloudflare Pages - #20

Merged
oskrgab merged 1 commit into
mainfrom
dev
Oct 5, 2026
Merged

oskrgab merged 1 commit into
mainfrom
dev

Conversation

@oskrgab

@oskrgab oskrgab commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Closes #15. Part of #12.

What changed

  • deploy.yml deploys to Cloudflare Pages with cloudflare/wrangler-action@v3: push to main is production (petroviz.pages.dev), push to dev is a preview (dev.petroviz.pages.dev), and manual dispatch deploys the chosen branch.
  • The data-source check still runs before the build, unchanged.
  • A final step fetches the reported deployment URL and fails unless it returns 200 and the app's HTML. It looks for the SvelteKit bootstrap rather than <title>, because the app is client-rendered (ssr = false) and its HTML has no title.
  • Read-only contents permission; concurrency grouped per branch.
  • Adds ADR 0001, rewrites DEPLOYMENT_SETUP.md, fixes stale README mentions, removes static/CNAME.

Verification

dev is at this commit: the run was green on every step and https://dev.petroviz.pages.dev returns 200.

Merging

Merging triggers the first production deploy to petroviz.pages.dev. The GitHub Pages site at volve-explorer.ocortez.com stays up until #18.

🤖 Generated with Claude Code

Replace the GitHub Pages deploy with a Wrangler deploy: main deploys
production, dev deploys a preview at dev.petroviz.pages.dev, and a final
step fetches the reported URL and fails unless it serves the app. The
data-source check still runs first. Adds ADR 0001, rewrites the
deployment guide, and removes the GitHub Pages CNAME file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@oskrgab
oskrgab merged commit 4be7a78 into main Oct 5, 2026
1 check 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.

Deploy petroviz to Cloudflare Pages

1 participant