vercel build
> runs vite build
> vite-plugin-vercel bundles _api/* to .vercel/output/functions
> vercel build copies outputDirectory to .vercel/output
> vercel build adds the rewrite to .vercel/output/config.json
Instead this happens:
vercel build
> runs vite build
> vite-plugin-vercel bundles _api/* to .vercel/output/functions
outputDirectory is not in .vercel/output
the rewrite is not added
When using vite-plugin-vercel without vike integration, I expect the following:
Having this
vercel.json
:Then calling
vercel build
Instead this happens: