N
Nuxtβ€’2y ago
Attacler/Bart

buildDir not working as expected

I have added: buildDir: "../backendEU/client/app", to my nuxt config (nuxt 3 btw). But it only puts in the following data (printscreen 1) If i take a look at .output i do see the index.html ect (printscreen 2) but it seems to be missing from backend/client/app, how can i solve this? I would like to have the components of public copied to ../backendEU/client/app
No description
No description
9 Replies
manniL
manniLβ€’2y ago
You want to change the output dir, not the build dir then. See https://nitro.unjs.io/config#output
βš—οΈ Nitro
Configuration | βš—οΈ Nitro
Customize your Nitro app with a configuration file!
Attacler/Bart
Attacler/BartOPβ€’2y ago
it seems like that options does not support .. do you know any way to solve that?
manniL
manniLβ€’2y ago
you can add it via nitro top level key
Attacler/Bart
Attacler/BartOPβ€’2y ago
i understand but when i put in ../backendEU/client/app (inside the publicDir) it will basicly go into ./backendEU/client/app so not going up one folder and then following the path logic
manniL
manniLβ€’2y ago
Okay, maybe I don't understand what your problem is then πŸ™ˆ Could you try explaining it again or provide a simple reproduction?
Attacler/Bart
Attacler/BartOPβ€’2y ago
__dirname + "/../backendEU/client" works πŸ™‚
Attacler/Bart
Attacler/BartOPβ€’2y ago
but basicly ./frontend2.0 is the nuxt 3 project and i wanted to put it inside ./backendEU/client/app got it now tho πŸ™‚
No description
Attacler/Bart
Attacler/BartOPβ€’2y ago
thanks for your help
manniL
manniLβ€’2y ago
Np!
Want results from more Discord servers?
Add your server