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

Commit

Permalink
docs(example): fix runtimeConfig extension in config-extends example (
Browse files Browse the repository at this point in the history
  • Loading branch information
blinpete committed Jan 3, 2023
1 parent be132df commit f1ad355
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions examples/advanced/config-extends/base/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ export default defineNuxtConfig({
imports: {
dirs: ['utils']
},
publicRuntimeConfig: {
theme: {
primaryColor: 'base_primary',
secondaryColor: 'base_secondary'
runtimeConfig: {
public: {
theme: {
primaryColor: 'base_primary',
secondaryColor: 'base_secondary'
}
}
}
})
8 changes: 5 additions & 3 deletions examples/advanced/config-extends/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ export default defineNuxtConfig({
'./ui',
'./base'
],
publicRuntimeConfig: {
theme: {
primaryColor: 'user_primary'
runtimeConfig: {
public: {
theme: {
primaryColor: 'user_primary'
}
}
},
modules: [
Expand Down

0 comments on commit f1ad355

Please sign in to comment.