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


9 Replies
You want to change the output dir, not the build dir then. See https://nitro.unjs.io/config#output
it seems like that options does not support ..
do you know any way to solve that?
you can add it via
nitro
top level keyi 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
Okay, maybe I don't understand what your problem is then π
Could you try explaining it again or provide a simple reproduction?
__dirname + "/../backendEU/client" works π
but basicly ./frontend2.0 is the nuxt 3 project and i wanted to put it inside ./backendEU/client/app
got it now tho π

thanks for your help
Np!