|
Some checks are pending
build-gate / build (push) Waiting to run
A copied embed URL — <bundle>/<profile>[/<instance>]/index.html, the shape the manifest advertises and a person actually pastes — had no route on the dev server, which served its leaf stand-in only at /__leaf/<bundle>/<profile>. It failed silently, which is the expensive part: with no route, Vite's SPA fallback answers an unknown path with the studio's HTML at status 200. The reader asks for one map and receives a different, working page, with no 404 and nothing in the console. leafRewrite() maps the embed shape onto the existing /__leaf/ renderer before any branch runs, so there is one renderer, not two that can drift — the point of the route is that one URL renders the same thing in dev and in the built tree. Both the bare tree-relative form and the /<treeName>/-prefixed form are accepted; the tree name is read from the build config rather than hardcoded. Traversal, encoded traversal and malformed escapes fall through untouched, and an unknown bundle keeps the leaf route's 404 JSON rather than becoming HTML at 200. Verified: /doxa-simple-map/doxa-simple-map/index.html and /__leaf/doxa-simple-map/doxa-simple-map return byte-identical bodies (742 B); the prayer URL mounts doxa-map at 1280x800 with a live canvas in a real browser. |
||
|---|---|---|
| .. | ||
| dev-plugin.mjs | ||
| discover.mjs | ||