Change Output Dir for generated pages.
Hi, is there a way to change
npx nuxi generate
output directory?
I'm changing the ssr build output dir so It works with my monorepo structure.
When I use npx nuxi generate
It works as expected, BUT, it also generates a symbolic link dist
folder in the app root, which is fine, but I prefer it not being created, the docs for the output generation (vite/nitro) weren´t much help.
There is a workspace structure attached.
Accepted Answer: https://discord.com/channels/473401852243869706/1261547978859085896/1261558385212653708
3 Replies
creating a symbolic link in the project root is by design, I don't think there's much to do about that
a semi-hacky way to deal with it is to remove it in a post-build script
make sure to point it to the right path were your dist folder symlink is created
Oh so It is indeed by design, I appreciate the answer.
I will put a
rm
script then to delete the folder after build, thank you very much @Lannisterhappy coding!