Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

docs: improve runtimeConfig example #5785

Merged
merged 3 commits into from
Jul 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/2.guide/2.features/10.runtime-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
})
Expand Down