Nuxt Nightly (compatibilityVersion: 4) Directory Structure #27310
Unanswered
angelhdzmultimedia
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! 👋💚🔥
After @manniL 's excellent vid about Nuxt 4 using Nightly, I wanted to try the new directory structure.
Set
srcDir: "src"
and moved things from root to src/app, and server to src/server and it's not working...Then tried
appDir: "src/app"
and nothing...So finally added
srcDir: "src/app"
andserverDir: "src/server"
and now it's working.Is this the right approach? I was under the impression (by comments I read) that it would automatically detect my preferred dir structure...
Thank you.
Edit: The auto detection of
app
andserver
seems to work only outside of asrc
dir... when adding asrc
dir, I have to explicitly setappDir
andserverDir
..Beta Was this translation helpful? Give feedback.
All reactions