-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Nuxt is getting ready for v4: nuxt/nuxt#27029
Are there plans to support the new folder structure?
Issue
I ran in to an issue attempting to add a new api route:
npx nuxi@latest add api issues --get
This will add to ./app/server/api/, but my server and api directory is in ./server/api. This is because the file is written to config.srcDir
Reproduction:
- Clone https://github.com/nuxt-hub/starter
- Run
npx nuxi@latest add api issues --get - Note that the new api is added to
app/server/apiand not/server/api
Possible Solutions
- Utilize the config.serverDir when operating on server files.
- Detect nuxt 4 compatibility version
pi0
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request