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

This commit is contained in:
Daniel Roe 2025-01-20 13:42:31 +00:00 committed by GitHub
parent a6b75d8674
commit 8c900bc9d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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