Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: clarify access of RuntimeConfig with Options API (#8147)
Browse files Browse the repository at this point in the history
  • Loading branch information
toniengelhardt committed Oct 13, 2022
1 parent 600a605 commit a67249b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/content/2.guide/4.going-further/10.runtime-config.md
Expand Up @@ -35,6 +35,9 @@ console.log(runtimeConfig.apiSecret)
console.log(runtimeConfig.public.apiBase)
```

::alert{type=info}
When using Options API the public runtime config is available via `this.$config.public`.

### Environment Variables

The most common way to provide configuration is by using [Environment Variables](https://medium.com/chingu/an-introduction-to-environment-variables-and-how-to-use-them-f602f66d15fa).
Expand Down

0 comments on commit a67249b

Please sign in to comment.