nuxt-hub / cli

Build full-stack Nuxt application with NuxtHub command line interface (CLI).
Apache License 2.0
59 stars 7 forks source link

Configurable Build Options #8

Open unibeck opened 6 months ago

unibeck commented 6 months ago

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

atinux commented 6 months ago

Related to #5