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:
parent
52d1b58f89
commit
9d6bcdb88f
2 changed files with 14 additions and 7 deletions
5
.changeset/late-fireants-ring.md
Normal file
5
.changeset/late-fireants-ring.md
Normal 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`
|
|
@ -89,13 +89,15 @@ export function validateSupportedFeatures(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
validationResult.envGetSecret = validateSupportKind(
|
if (config.experimental?.env) {
|
||||||
envGetSecret,
|
validationResult.envGetSecret = validateSupportKind(
|
||||||
adapterName,
|
envGetSecret,
|
||||||
logger,
|
adapterName,
|
||||||
'astro:env getSecret',
|
logger,
|
||||||
() => config?.experimental?.env !== undefined,
|
'astro:env getSecret',
|
||||||
);
|
() => true,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return validationResult;
|
return validationResult;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue