fix(schema): allow overriding dev/test environment value (#30667)

This commit is contained in:
Daniel Roe 2025-01-20 13:42:31 +00:00
parent 7cfc338ed7
commit 09c3f79eff
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -244,12 +244,16 @@ export default defineUntypedSchema({
*
* Normally, you should not need to set this.
*/
dev: Boolean(isDevelopment),
dev: {
$resolve: val => val ?? Boolean(isDevelopment),
},
/**
* Whether your app is being unit tested.
*/
test: Boolean(isTest),
test: {
$resolve: val => val ?? Boolean(isTest),
},
/**
* Set to `true` to enable debug mode.