docs: improve runtimeConfig example (#5785)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
lm 2022-07-13 12:03:02 -05:00 committed by GitHub
parent 9f40d5c7d0
commit a745be363b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,9 +54,9 @@ NUXT_PUBLIC_API_BASE=https://nuxtjs.org
```ts [nuxt.config.ts]
export default defineNuxtConfig({
runtimeConfig: {
apiSecret: '',
apiSecret: '', // can be overridden by NUXT_API_SECRET environment variable
public: {
apiBase: '', // Or a default value
apiBase: '', // can be overridden by NUXT_PUBLIC_API_BASE environment variable
}
},
})