You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
Having the API routes in
./server/api
directory and it needs to be bundled in./dist/server/api
.Example
Source file
./server/api/user/[id]/(post).ts
as the API route file.Expected
./dist/server/api/user/[id]/(post).mjs
Current
./dist/server/api/user/_id_/(post).mjs
Reproduction
https://github.com/rtritto/vite-preserve
Steps to reproduce
git clone https://github.com/rtritto/vite-preserve.git
cd vite-preserve
yarn
yarn build
oryarn vite build
System Info
Used Package Manager
yarn
Logs
Logs
Validations
The text was updated successfully, but these errors were encountered: