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
If a middleware.ts file is created in the root of the project to use vercel's edge middleware, the config.json file that nitro generates sends to 404 to all /api/* endpoints
For example:
Environment
Operating System: macOs 12.5.1 (21G83)
Node Version: v16.11.1
Nuxt Version: 3.0.0-rc.6
Package Manager: npm@6.14.15
Builder: vite
Reproduction
https://stackblitz.com/edit/github-usfnbu
Describe the bug
If a middleware.ts file is created in the root of the project to use vercel's edge middleware, the config.json file that nitro generates sends to 404 to all /api/* endpoints
For example:
But if not have that middleware.ts file, the build not generates this exeception to api endpoints
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: