Currently when you run nuxthub deploy it ends up running nuxi build --preset=cloudflare-pages. It would be helpful to be able to pass other nuxi build options such as --dotenv .dev.vars to the build command when running nuxthub deploy.
A couple of ideas on implementation:
1) Use nuxt.config.js hub option
hub: {
extraBuildOpts: ['--dotenv .dev.vars']
},
2) Allow pass through from nuxthub cli
nuxthub deploy --dotenv .preview.vars
Currently when you run
nuxthub deploy
it ends up runningnuxi build --preset=cloudflare-pages
. It would be helpful to be able to pass othernuxi build
options such as--dotenv .dev.vars
to the build command when runningnuxthub deploy
.A couple of ideas on implementation: 1) Use nuxt.config.js
hub
option2) Allow pass through from
nuxthub
clinuxthub deploy --dotenv .preview.vars