Vite Vercel
This repo demonstrates an issue with Vite & Vercel CLI.
- Run
vc dev
. - Go to
https://localhost:3000
- this works as expected - Go to
https://localhost:3000/api/foo
- this works as expected - Go to
https://localhost:3000/api
orhttps://localhost:3000/api/somethinghere
- this does not work, the API route is ignored.
This workflow works on Vercel on production: