How to change the nitro.output.dir
with nuxt build
command?
#1687
Unanswered
cognixusRay
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I would like to ask is there any way for us to change the
nitro.output.dir
by usingnuxt build
command?In nuxt 2, we are able to use
nuxt build --buildDir=/path/to/output
. But it's not for nuxt 3.https://nitro.unjs.io/guide/configuration#runtime-configuration
According to the docs, I managed to change the output directory by either editing
nuxt.config.ts
or providing.nuxtrc
.But the output directory is somehow dynamic in my CI pipeline, i can't hard code it in either file.
So I'm looking for something similar that works for nuxt 3.
Anyone has any idea for this?
Beta Was this translation helpful? Give feedback.
All reactions