From a65d30a3008ec14f71eaf0f5d80ef6abcfcdac43 Mon Sep 17 00:00:00 2001 From: Toni Date: Thu, 13 Oct 2022 00:41:17 +0100 Subject: [PATCH 1/2] Clarify access of RuntimeConfig with Options API --- 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..b86eecab245 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`, e.g. `this.$confiig.public.apiBase`. + ### 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). From 4a6a0c08f7aa639cf7484d56187c3ca25a5b740a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 13 Oct 2022 08:50:41 +0200 Subject: [PATCH 2/2] Update docs/content/2.guide/4.going-further/10.runtime-config.md --- docs/content/2.guide/4.going-further/10.runtime-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b86eecab245..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 @@ -36,7 +36,7 @@ console.log(runtimeConfig.public.apiBase) ``` ::alert{type=info} -When using Options API the public runtime config is available via `this.$config.public`, e.g. `this.$confiig.public.apiBase`. +When using Options API the public runtime config is available via `this.$config.public`. ### Environment Variables