You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.4 KiB
2.4 KiB
| title | status | type | priority | created_at | updated_at |
|---|---|---|---|---|---|
| Add `_redirects` SPA fallback — create file and include in Trunk build via copy-file | completed | task | critical | 2026-03-10T23:32:09Z | 2026-03-10T23:32:09Z |
This file must be present in the dist/ output directory that wrangler pages deploy uploads.
Trunk handles this via its copy-file asset type: adding a <link data-trunk rel="copy-file" href="_redirects"/> line to index.html causes Trunk to copy the file verbatim into dist/
on every build.
The API Worker claims /api/* at the Cloudflare routing level before Pages processes the request,
so the /* /index.html 200 catch-all does not interfere with the API.
/* /index.html 200
-
Add the following line to
index.htmlinside<head>, alongside the otherdata-trunklinks:<link data-trunk rel="copy-file" href="_redirects"/> -
Run
trunk buildand verify thatdist/_redirectsexists with the correct single-line content. -
Commit with:
chore(quotesdb): add _redirects SPA fallback for Cloudflare Pages routing
quotesdb/ui