mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
docs: clarify access of RuntimeConfig with Options API (#8147)
This commit is contained in:
parent
600a6059c1
commit
a67249b2f9
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user