feat(website): run the playground on the checkout's own engine - #9
Merged
Conversation
Drop the published @avsystem/openapi-ng pins from the website. Vite aliases the browser entry to the root lib/browser.js and bundle-engine copies the wasm loader from the repo root, so the site always runs the commit it is built from and a release needs no follow-up docs bump. The Docs workflow builds the wasm target on every push and PR. Production deploys only for a release commit (same HEAD check as the publish job) or a docs-only push; other pushes to main upload a Cloudflare preview whose engine version carries the short commit SHA. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Summary
@avsystem/openapi-ngand@avsystem/openapi-ng-wasm32-wasipackages. Vite aliases@avsystem/openapi-ng/browserto the rootlib/browser.js, andbundle-engine.mjscopies the wasm loader, worker and binary from the repo root.vX.Y.Zcommit: no follow-up commit bumping the website pins, and PRs that add generator options no longer fail the Docs e2e job.wasm32-wasip1-threadstarget on every push and PR (cargo cache shared with the CI matrix entry).website/,docs.yml,bun.lock,bunfig.toml,stackblitz/); manual runs always deploy. Other pushes tomainupload a Cloudflare preview taggedmain-<sha>, PRs keep theirpr-<n>previews.vX.Y.Z+<sha>so they are distinguishable from production.bun linkdance is replaced by the two commands needed before running the site.Trade-offs
main, so it may carry unreleased generator changes.Test plan
bun run build,bun run check,bun run testinwebsite/pass locally against a freshly built root wasm (16 e2e tests).astro devgenerates through the alias; cold-cache "Outdated Optimize Dep" 504s are pre-existing (identical count with the old config).pr-9preview with enginev0.6.0+15303df: https://6ab2fb2e-openapi-ng-docs.pkurc.workers.dev/playground/🤖 Generated with Claude Code