Closed Xiaozuoyi closed 7 months ago
We have build: { format: 'file' }
in astro.config.mjs
so pages are built to foo.html
(this is required by astro-pagefind
). Vercel will not route /foo
to /foo.html
automatically. Add { "cleanUrls": true }
in vercel.json
fixes the problem according to this doc.
Fixed in this commit.
I'm using Vercel for project deployment, but I can't make route jumps. It will just get a 404 error.