Skip to content

fix: clean up guide deployment assets and configuration - #1440

Open
fhammerschmidt wants to merge 2 commits into
rescript-lang:masterfrom
fhammerschmidt:fix/1421-guide-deployment
Open

fhammerschmidt wants to merge 2 commits into
rescript-lang:masterfrom
fhammerschmidt:fix/1421-guide-deployment

Conversation

@fhammerschmidt

@fhammerschmidt fhammerschmidt commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

The guide generated an unused out/ copy even though Wrangler serves build/client/. Vite's public directory pointed at the docs favicons, so the guide's own public/robots.txt was omitted from deployment. A separate TODO file duplicated the README launch checklist and contained stale items.

  • Remove the unused React Router buildEnd copy and its filesystem import.
  • Use the guide's normal public/ directory so robots.txt is served and published.
  • Import the three shared favicon assets in the root route. Vite emits their URLs and files without duplicating the source images.
  • Extend the existing Wrangler CI startup check to request robots.txt and each emitted icon, comparing the response bytes with the expected files. This catches an HTML SPA fallback masquerading as an asset response.
  • Exclude compiler-generated guide app JSX from oxfmt, including the tracked root route output.
  • Remove TODO.md, retain the supported-browser/performance decision in the README checklist, and document Wrangler's actual deployment directory.

Targets website master (v12). No compiler repository changes.

Validation:

  • Strict ReScript compilation and formatting pass.
  • Guide production build passes and does not recreate out/.
  • Built robots.txt matches the guide's source file; all three icon URLs in prerendered HTML resolve to emitted files matching the shared source images.
  • Local Wrangler startup is blocked by filesystem permissions on its registry; the HTTP checks run in the existing Wrangler CI job.
  • All six GitHub Actions jobs pass, including Wrangler HTTP checks that verify the published robots and icon bytes.

Fixes #1406.
Part of #1421.

Serve the guide public directory so robots.txt reaches the deployed Worker. Import shared favicon assets through Vite and verify robots and icon responses in the Wrangler CI smoke check.

Remove the unused build/client-to-out copy and stale TODO checklist. Document the actual deployment directory and keep outstanding launch work in the README.

Fixes rescript-lang#1406. Part of rescript-lang#1421.
The guide root and route outputs are tracked compiler files. Keep their compiler formatting authoritative instead of requiring hand-formatting after compilation.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T22:02:54.079818Z d2de86d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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.

Guide deployment leftovers

2 participants