From a67249b2f9312afa60249de551f99ea9a4353567 Mon Sep 17 00:00:00 2001 From: Toni Date: Thu, 13 Oct 2022 07:51:04 +0100 Subject: [PATCH] docs: clarify access of RuntimeConfig with Options API (#8147) --- docs/content/2.guide/4.going-further/10.runtime-config.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/content/2.guide/4.going-further/10.runtime-config.md b/docs/content/2.guide/4.going-further/10.runtime-config.md index 4a380f642f4..52eafbbbd71 100644 --- a/docs/content/2.guide/4.going-further/10.runtime-config.md +++ b/docs/content/2.guide/4.going-further/10.runtime-config.md @@ -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).