You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add Nuxt note about public environment variables (#1562)
* docs: add Nuxt note about public environment variables
* Update docs/nuxt/environment-variables.md
---------
Co-authored-by: Eduardo San Martin Morote <[email protected]>
Copy file name to clipboardexpand all lines: docs/nuxt/environment-variables.md
+3
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
3
3
Nuxt VueFire automatically picks up a few environment variables to configure Firebase from your `.env` file. These usually take precedence over other options defined in `nuxt.config.ts`. They usually try to support the existing Firebase environment variables better.
4
4
5
+
Since VueFire config is treated as _Public Runtime Config_, it can also be overridden with [env variables by following the Nuxt convention](https://nuxt.com/docs/guide/going-further/runtime-config#environment-variables). For example, an environment variable named `NUXT_PUBLIC_VUEFIRE_CONFIG_API_KEY=xyz` will override the `config.apiKey`.
6
+
Note you still need to provide empty string values to each `config` property that is defined this way.
7
+
5
8
## Admin SDK
6
9
7
10
During development, if you are doing SSR, you must provide the `GOOGLE_APPLICATION_CREDENTIALS` environment variable with the path to the service account file. This is usually a JSON file you can download from the Firebase Console > Project Settings > Service Accounts > Generate new private key.
0 commit comments