nuxt-hub / cli

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

Configurable Build Options #8

Open unibeck opened 2 months ago

unibeck commented 2 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 2 months ago

Related to #5