Closed Yizack closed 1 month ago
/api/test
Hello! I want to report an issue I encountered since v3.12.4, the serverDir config in nuxt.config.ts is not working with the same exact config used in v3.12.3, I'm not sure if it has something to do with the change made in https://github.com/nuxt/nuxt/commit/6abaae7fa1c8656ccd2be0cf5ca80cacc598ad57
v3.12.4
serverDir
nuxt.config.ts
v3.12.3
Inside the reproduction nuxt.config.ts, I'm trying to set myServer folder as server directory instead of server
myServer
server
export default defineNuxtConfig({ serverDir: './myServer', });
It has an API endpoint /api/test it should work when I access this endpoint in the app but it doesn't
When I lock the dependency back to "nuxt": "3.12.3" it works.
"nuxt": "3.12.3"
No response
Start a new pull request in StackBlitz Codeflow.
Environment
Reproduction
/api/test
Describe the bug
Hello! I want to report an issue I encountered since
v3.12.4
, theserverDir
config innuxt.config.ts
is not working with the same exact config used inv3.12.3
, I'm not sure if it has something to do with the change made in https://github.com/nuxt/nuxt/commit/6abaae7fa1c8656ccd2be0cf5ca80cacc598ad57Additional context
Inside the reproduction
nuxt.config.ts
, I'm trying to setmyServer
folder as server directory instead ofserver
It has an API endpoint
/api/test
it should work when I access this endpoint in the app but it doesn'tWhen I lock the dependency back to
"nuxt": "3.12.3"
it works.Logs
No response