docs: clarify access of RuntimeConfig with Options API (#8147)

This commit is contained in:
Toni 2022-10-13 07:51:04 +01:00 committed by GitHub
parent 600a6059c1
commit a67249b2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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).