Skip to content

Commit

Permalink
docs: wip env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 6, 2023
1 parent 99e7b3a commit 232e7b4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions docs/nuxt/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,12 @@ export default defineNuxtConfig({
})
```

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:
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`.

```ts{5}
export default defineNuxtConfig({
vuefire: {
// ...
admin: {
serviceAccount: 'path/to/credentials.json',
}
},
})
You can also provide the path to the `service-account.json` file. Make sure the path is located

```dotenv
GOOGLE_APPLICATION_CREDENTIALS=service-account.json
```

:::tip
Expand Down

0 comments on commit 232e7b4

Please sign in to comment.