fix: resolve ssr:false prerender error for docs/manual/api route#1242
fix: resolve ssr:false prerender error for docs/manual/api route#1242jderochervlk merged 2 commits intovlk/split-out-api-overviewfrom
Conversation
Agent-Logs-Url: https://github.com/rescript-lang/rescript-lang.org/sessions/b7d1655e-a3e7-4c73-b113-ec2b9fdc0ce3 Co-authored-by: jderochervlk <60623931+jderochervlk@users.noreply.github.com>
Cloudflare deploymentDeployement ID: 4f034537-c471-4423-a90d-0625361d6b61 ⛅️ wrangler 4.63.0 (update available 4.81.1) ✨ Uploading _redirects |
Deploying rescript-lang-org with
|
| Latest commit: |
b698d8d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4bba8c52.rescript-lang.pages.dev |
| Branch Preview URL: | https://head.rescript-lang.pages.dev |
Fork PR Cloudflare deploymentPR: #1242 ⛅️ wrangler 4.61.1 (update available 4.81.1) ✨ Uploading _redirects |
docs/manual/apiwas registered twice in the route manifest — once explicitly asApiOverviewRouteand again viaServer.routes()(react-router-mdx) becausemarkdown-pages/docs/manual/api.mdxexists. React Router's prerender validation matches each path to exactly one route ID; the MdxRoute entry won the match, leavingapi-overviewoutsideprerenderedRoutes. Withssr:false, any route that has aloaderbut isn't prerendered is invalid → build error.Changes
app/routes.res— extend themdxRoutesfilter to also excludedocs/manual/api, mirroring howblogandcommunityare already excluded:app/routes/ApiOverviewRoute.resi— add the missing interface file. Every other route module has one; the absence here left module exports uncontrolled and broke Vite HMR.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.rescript-lang.org/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node /home/REDACTED/work/rescript-lang.org/rescript-lang.org/node_modules/@react-router/dev/bin.js build es/@rescript/lin-runtime-path conf�� --local committer.email g.org/node_modul-I es/@rescript/runreact-router g.org/node_modulbuild es/@rescript/rea4 g.org/node_modul-bs-jsx-preserve es/@�� --noprofile(dns block)download.cypress.io/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node dist/index.js --exec install(dns block)If you need me to access, download, or install something from one of these locations, you can either: