Skip to content

v1.2.0

Compare
Choose a tag to compare
@lupas lupas released this 20 Nov 01:06
· 989 commits to master since this release
1bbecac

⚠️ Important ⚠️

In order to make a new feature possible (see below) we had to restructure nuxt-fire options in nuxt.config.js just a little bit. Make sure to change yours accordingly:

OLD:

modules: [
    [
      'nuxt-fire',
      {
        config: {
          apiKey: '<apiKey>',
          authDomain: '<authDomain>',
          databaseURL: '<databaseURL>',
          projectId: '<projectId>',
          storageBucket: '<storageBucket>',
          messagingSenderId: '<messagingSenderId>'
        },
        devConfig: { ... }
      }
    ]
  ]

NEW:

modules: [
    [
      'nuxt-fire',
      {
        config: {
          production: {
            apiKey: '<apiKey>',
            authDomain: '<authDomain>',
            databaseURL: '<databaseURL>',
            projectId: '<projectId>',
            storageBucket: '<storageBucket>',
            messagingSenderId: '<messagingSenderId>'
          },
          development: { ... }
        }
      }
    ]
  ],

✨ New Features

  • customEnv Mode:
    Sick of relying on NODE_ENV? Want to define more than just two different Firebase configs? EntercustomEnv=true! Just define a new environment variable FIRE_ENV and name your configs after the value of that variable. You can find more information on how to implement in our docs.

☘️ Small Improvements

  • Build error's are now displayed in red.