N
Nuxtβ€’4mo ago
BobLamarley

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
No description
No description
8 Replies
fishDev94
fishDev94β€’4mo ago
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?
BobLamarley
BobLamarleyOPβ€’3mo ago
Then i can update my nuxt.config.ts and remove srcDir: 'src' ?
fishDev94
fishDev94β€’3mo ago
Yes
BobLamarley
BobLamarleyOPβ€’3mo ago
Ok i will try that πŸ™‚ Also my aap.config is :
No description
BobLamarley
BobLamarleyOPβ€’3mo ago
even frontend/public/ folder goes to /app ?
BobLamarley
BobLamarleyOPβ€’3mo ago
No description
fishDev94
fishDev94β€’3mo ago
no public will stay on root dir
fishDev94
fishDev94β€’3mo ago
No description
Want results from more Discord servers?
Add your server