mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: improve runtimeConfig example (#5785)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
9f40d5c7d0
commit
a745be363b
@ -54,9 +54,9 @@ NUXT_PUBLIC_API_BASE=https://nuxtjs.org
|
|||||||
```ts [nuxt.config.ts]
|
```ts [nuxt.config.ts]
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
apiSecret: '',
|
apiSecret: '', // can be overridden by NUXT_API_SECRET environment variable
|
||||||
public: {
|
public: {
|
||||||
apiBase: '', // Or a default value
|
apiBase: '', // can be overridden by NUXT_PUBLIC_API_BASE environment variable
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user