Repository navigation
SV4: sveltekit-saas becomes an Orun baseline - #5
Merged
Merged
Conversation
One build takes a new SvelteKit SaaS from nothing to live on stage and prod in one landing: 01-product creates the repository, mints the Cloudflare and Supabase credentials and lands the product, whose merge converges supabase → db-migrate → web per environment; the bootstrap awaits the service-role key's publication on stage and prod before it verifies; 02-docs records the deployment, Stripe and email included. Built on saas-starter's baseline machinery (card, build document, rename engine with its seam at WebsiteName in apps/web/src/config.ts, bootstrap helpers, deployment-record renderer, test tiers), without Hyperdrive. The e2e serves the built Worker a Supabase project stood in for — the auth and storage schemas, Auth with its admin API, the Data API calls the app makes (with Supabase's CORS headers: SvelteKit's server fetch enforces CORS in universal loads), the Management API's query endpoint — and takes a user from sign-up to a deleted account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
ruehowl
marked this pull request as ready for review
October 28, 2026 23:20
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.
This PR makes sveltekit-saas an Orun baseline. One build takes a new SvelteKit SaaS from nothing to live on stage and prod, in its own repository, in one landing. It is built on saas-starter's baseline machinery, with this product's chain and no Hyperdrive.
What a build does
01-productcreates the repository, mints the Cloudflare and Supabase credentials, and lands the product as one PR.supabase → db-migrate → webper environment. Each edge is enforced on a push to main and advisory on a PR.orun.secrets/exists). The web lane reads that key only as an optional ref, and only that environment's deploy pushes it to the Worker.02-docsrecords the live deployment from probed facts. That includes whether Stripe and email are connected, read from each environment's/api/health.What is added
blueprint.yaml(requires GitHub, Cloudflare and Supabase; four secrets; ~14 min) andrepo-blueprint.yaml(01-product13 min +02-docs1 min)..baseline/(identity, the product's README, task contracts),BOOTSTRAP.md,docs/phases/andai/context/.WebsiteNameinapps/web/src/config.ts; the links to CMSaasStarter stay as credits.tooling/bootstrap/), the deployment-record renderer (hooks/) and the catalog's component docs.baseline.ymlandtag.yml.Tests, all green locally
--check.terraform validate.testing/lib/fake-supabase-api.py): Postgres with Supabase's roles, the auth and storage schemas, Auth with its admin API, the Data API calls the app makes, and the Management API's query endpoint.Fixed along the way: SvelteKit runs universal loads on the server too, and its server-side
fetchenforces CORS there as a browser does. So the stand-in answers with the CORS headers Supabase's gateway sends.Generated by Claude Code