docs(example): fix `runtimeConfig` extension in config-extends example (#9912)

This commit is contained in:
Peter Blinov 2023-01-03 20:02:38 +03:00 committed by GitHub
parent be132df587
commit f1ad3550c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View File

@ -2,10 +2,12 @@ export default defineNuxtConfig({
imports: { imports: {
dirs: ['utils'] dirs: ['utils']
}, },
publicRuntimeConfig: { runtimeConfig: {
theme: { public: {
primaryColor: 'base_primary', theme: {
secondaryColor: 'base_secondary' primaryColor: 'base_primary',
secondaryColor: 'base_secondary'
}
} }
} }
}) })

View File

@ -3,9 +3,11 @@ export default defineNuxtConfig({
'./ui', './ui',
'./base' './base'
], ],
publicRuntimeConfig: { runtimeConfig: {
theme: { public: {
primaryColor: 'user_primary' theme: {
primaryColor: 'user_primary'
}
} }
}, },
modules: [ modules: [