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

docs(examples): fix runtimeConfig usage in config-extends example #9912

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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