Commit 57c9576
fix(seo): add trailingSlash to vercel.json for edge 308 redirects (#239)
The Next.js trailingSlash config only affects build output (generating
en/index.html vs en.html). Vercel static hosting still serves both /en
and /en/ as 200 without redirecting. Adding trailingSlash: true to
vercel.json makes Vercel enforce 308 /en → /en/ at the edge, so Semrush
sees a single canonical URL form.
Also updates root redirect / → /en/ to avoid double redirect.
Co-authored-by: paperclip-resolver[bot] <3736210+paperclip-resolver[bot]@users.noreply.github.com>1 parent 6d7378c commit 57c9576
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
193 | 194 | | |
0 commit comments