samtgarson / nuxt-env

Inject env vars for your Nuxt app at runtime
170 stars 15 forks source link

update readme setup section #10

Closed lucasfischer closed 5 years ago

lucasfischer commented 5 years ago

I spent 30 minutes figuring out how to add this module when other modules have already been added to a Nuxt instance. i would like to save this trouble for other developers.

i tried to add it like this, which obviously does't work:

modules: [
  'other-module',
  'nuxt-env',
  {
    keys: ['TEST_VALUE']
  }
],

ps: thanks for this great module 😊

samtgarson commented 5 years ago

Thanks for this! I think the nuxt docs show this but definitely doesn't help to add here. I think the readme was wrong anyway, it's missing an extra []