Skip to content

Compatibility-date builds (/compatibility/<date>/)#34

Closed
Edwinexd wants to merge 1 commit into
masterfrom
feature/compatibility-dates
Closed

Compatibility-date builds (/compatibility/<date>/)#34
Edwinexd wants to merge 1 commit into
masterfrom
feature/compatibility-dates

Conversation

@Edwinexd

@Edwinexd Edwinexd commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Serves immutable, dated copies of the app at /compatibility/<date>/ so course material stays reproducible when the live site changes (question bank, generated data, behavior).

  • Assets and localStorage are namespaced by the deploy base path (src/storage.ts). Each dated build loads its own frozen questionpool/data and keeps separate saved work on the shared origin. Live root (base /) is unchanged and backward compatible for existing users.
  • Dates are declared in compatibility.json (date -> commit), no git tags. Cut one with npm run compat:cut, commit, push.
  • The normal build (npm run build) now assembles the live root plus each pinned snapshot, so Cloudflare Pages needs no config change. The single-app build is npm run build:app.

Guards: published dates are immutable, commits predating the machinery are skipped, and a snapshot that fails to build is skipped so the live site still deploys.

Opening as a PR to check the Cloudflare preview build. With compatibility.json empty the preview just exercises the new build command on the live root; snapshot assembly was verified locally.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sql-validator with  Cloudflare Pages  Cloudflare Pages

Latest commit: ae614e6
Status: ✅  Deploy successful!
Preview URL: https://fea17e07.dsv-db-sql-validator.pages.dev
Branch Preview URL: https://feature-compatibility-dates.dsv-db-sql-validator.pages.dev

View logs

@Edwinexd Edwinexd closed this Jul 4, 2026
@Edwinexd Edwinexd deleted the feature/compatibility-dates branch July 4, 2026 19:07
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.

1 participant