Nuxt 3 to Nuxt 4
I'm trying to update my project but with codemod it does nothing, maybe because i already have a src/ in my project structure:
It just created an empty app/ folder,
Here is my current structure: ( see capture 1)
And my nuxt.config.js is like that: ( see capture 2 )
I can do it manually but i don't understand what should i move from src/ to app/
I would say assets/, components/, composables/, layouts/, middleware/, pages/, plugins/, stores/ and utils/ goes to app/
And what i need to put to rootDir is the lefts one from src ? public/ and stores/ and app.config.ts and app.vue ?
What should my nuxt.config.ts should looks like by doing this ? π
@manniL
8 Replies
Hello
you have to move all src content into app/ directory
everythings relates to "frontend" part
in your case, all stuff
what is it app.config in your case?
Then i can update my
nuxt.config.ts
and remove srcDir: 'src'
?Yes
Ok i will try that π
Also my aap.config is :
even frontend/public/ folder goes to /app ?
no public will stay on root dir