Skip to content

Commit 232e7b4

Browse files
committed
docs: wip env variable
1 parent 99e7b3a commit 232e7b4

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

docs/nuxt/getting-started.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,12 @@ export default defineNuxtConfig({
3939
})
4040
```
4141

42-
If you are using SSR with any auth related feature, you will need to create a [service account](https://firebase.google.com/support/guides/service-accounts) and provide a path to the credentials file in the `serviceAccount` property:
42+
If you are using SSR with any auth related feature, you will need to create a [service account](https://firebase.google.com/support/guides/service-accounts) and provide its content as an _environment variable_ named `GOOGLE_APPLICATION_CREDENTIALS`.
4343

44-
```ts{5}
45-
export default defineNuxtConfig({
46-
vuefire: {
47-
// ...
48-
admin: {
49-
serviceAccount: 'path/to/credentials.json',
50-
}
51-
},
52-
})
44+
You can also provide the path to the `service-account.json` file. Make sure the path is located
45+
46+
```dotenv
47+
GOOGLE_APPLICATION_CREDENTIALS=service-account.json
5348
```
5449

5550
:::tip

0 commit comments

Comments
 (0)