[codex] add Cloudflare SSR for playground - #1303
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
guide | c2ffa45 | Commit Preview URL Branch Preview URL |
Sep 18 2026, 12:20 PM |
0aefaa6 to
96a1e82
Compare
fb02aa1 to
faf42a2
Compare
faf42a2 to
0a8853a
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2621ca1941
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
# Conflicts: # AGENTS.md # apps/docs/wrangler.toml
Create a RouterContextProvider for Cloudflare Pages SSR requests so dynamic playground routes remain compatible with React Router 8.
Guide Cloudflare deployment⛅️ wrangler 4.130.0 To deploy this version to production traffic use the command wrangler versions deploy Changes to non-versioned settings (config properties 'logpush' or 'tail_consumers') take effect after your next deployment using the command wrangler versions deploy Changes to triggers (routes, custom domains, cron schedules, etc) must be applied with the command wrangler triggers deploy |
Cloudflare deploymentDeployement ID: 860ea542-396d-46fd-9223-1a702e8bebe6 ⛅️ wrangler 4.130.0 ✨ Uploading _redirects |
Context
The playground discovers available compiler versions from
/playground-bundles/versions.json. When/tryis prerendered, that loader data is captured during the docs build, so publishing a new compiler bundle does not make it available in the playground until the site is rebuilt.This change keeps the documentation site statically prerendered while serving the playground through Cloudflare Pages Functions. The
/tryloader can therefore fetch the current version list at request time, allowing newly published compiler versions to appear without triggering a docs build.Summary
@rescript-lang/docswhile preserving prerendering for the existing static routes./tryfrom prerender output and routes/tryand/try.datathrough Cloudflare Pages Functions.HEADhandling, and React Router 8 request-context support.nodejs_compatand ensures the SSR bundle is built before local and CI Wrangler validation./tryartifacts cannot mask the runtime route.