0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

fix: astro:env warning (#12286)

This commit is contained in:
Florian Lefebvre 2024-10-23 10:44:49 +02:00 committed by GitHub
parent 52d1b58f89
commit 9d6bcdb88f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 7 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes a case where a warning for experimental `astro:env` support would be shown when using an adapter but not actually using `astro:env`

View file

@ -89,13 +89,15 @@ export function validateSupportedFeatures(
}
}
if (config.experimental?.env) {
validationResult.envGetSecret = validateSupportKind(
envGetSecret,
adapterName,
logger,
'astro:env getSecret',
() => config?.experimental?.env !== undefined,
() => true,
);
}
return validationResult;
}