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

nuxi add api does not add to server directory #13

Closed
bigredwill opened this issue Nov 1, 2024 · 3 comments
Closed

nuxi add api does not add to server directory #13

bigredwill opened this issue Nov 1, 2024 · 3 comments

Comments

@bigredwill
Copy link

$ npx nuxi add api magazines --get                              
ℹ Creating directory /Users/home/20-Projects/skateboard.fyi/app/server/api                                                                                           
ℹ 🪄 Generated a new api in /Users/home/20-Projects/skateboard.fyi/app/server/api/magazines.get.ts 

But, this starter project defines the server/ directory at the root, adjacent to the app/ directory.
image

Is there a reason the server directory is outside of the app directory for this starter?

@bigredwill
Copy link
Author

Ah! So this is a Nuxt v4 project, and nuxi perhaps is not compatible with this directory structure yet https://nuxt.com/docs/getting-started/upgrade#new-directory-structure

@bigredwill
Copy link
Author

Closing this issue, filed with nuxi nuxt/cli#551

Copy link
Contributor

atinux commented Nov 4, 2024

Thanks for reporting it, we will improve the CLI!

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

No branches or pull requests

2 participants