nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
993 stars 57 forks source link

Setting env variables for both prod en preview #383

Open remihuigen opened 21 hours ago

remihuigen commented 21 hours ago

Is your feature request related to a problem? Please describe. My env variables for preview and production environments are often out of sync. When adding new vars, I usually forget to do the same for the preview environment

Describe the solution you'd like Most of my variables are shared between environments. For me personally, it would make sense to set any new variables added to production env, automatically to preview environment. However, this probably isn't the case for everybody.

Alternatively, upon adding (i.e. saving) new vars to production environment, you could show a notification in the UI prompting "copy these variables to preview environment" (or vice versa)