Skip to content

Commit

Permalink
fix(schema): ignore empty string in app.{rootId|rootTag} (#22543)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Aug 9, 2023
1 parent 70fe659 commit cdcfb1b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/schema/src/config/app.ts
Expand Up @@ -174,13 +174,16 @@ export default defineUntypedSchema({
/**
* Customize Nuxt root element id.
*/
rootId: '__nuxt',
rootId: {
$resolve: val => val || '__nuxt'
},

/**
* Customize Nuxt root element tag.
*
*/
rootTag: 'div'
rootTag: {
$resolve: val => val || 'div'
}
},

/**
Expand Down

0 comments on commit cdcfb1b

Please sign in to comment.