Commit 541d2a4
committed
fix(redirects): serve legacy redirects in production via render.yaml
Production runs on Render (a manually-created static site), which ignores
vercel.json — so the redirects wired up in #71 never applied in prod. The live
service also had broad SPA-fallback rewrites (/sdk/*, /react/*, /smart-wallet/*,
/meta-infra/*, /recovery-flow/*) that, under Render's first-match-by-priority
routing, swallowed ~145 of the 201 legacy URLs into the app shell (-> in-app 404).
- render.yaml: Render Blueprint that adopts the existing "docs" static site.
Generated redirects sit ABOVE the SPA-fallback rewrites so they take priority.
- redirects.config.js stays the single source of truth; folds in /magic-account
(collapsing its stale /sdk/advanced/chain-abstraction hop).
- scripts/sync-render-redirects.mjs splices the generated block between
sentinels, preserving the hand-maintained service def + fallbacks. Output is
prettier-clean by construction.
- CI (redirects-in-sync) + npm scripts now target render.yaml.
- Remove the unused vercel.json and its sync script.1 parent c8ed486 commit 541d2a4
8 files changed
Lines changed: 774 additions & 1072 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
| |||
0 commit comments