Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt 4 Directory structure support #551

Open
bigredwill opened this issue Nov 2, 2024 · 0 comments
Open

Nuxt 4 Directory structure support #551

bigredwill opened this issue Nov 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bigredwill
Copy link

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:

  1. Clone https://github.com/nuxt-hub/starter
  2. Run npx nuxi@latest add api issues --get
  3. Note that the new api is added to app/server/api and not /server/api

Possible Solutions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants