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

Commit

Permalink
docs: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jul 13, 2022
1 parent 89321a5 commit 7ad9f1f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/content/2.guide/2.features/10.runtime-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ NUXT_PUBLIC_API_BASE=https://nuxtjs.org
```ts [nuxt.config.ts]
export default defineNuxtConfig({
runtimeConfig: {
apiSecret: process.env.NUXT_API_SECRET || '', // .env value + an empty string as a fallback value
apiSecret: '', // can be overridden by NUXT_API_SECRET environment variable
public: {
apiBase: process.env.NUXT_PUBLIC_API_BASE || 'someBase', // Or .env value + a fallback value
apiPublicKey: 'somePublicApiKey', // Or a default value
apiBase: '', // can be overridden by NUXT_PUBLIC_API_BASE environment variable
}
},
})
Expand Down

0 comments on commit 7ad9f1f

Please sign in to comment.