Skip to content

Nuxt 4 Directory structure support #551

@bigredwill

Description

@bigredwill

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions