0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Fix setOnSetGetEnv parameter name (#12220)

Co-authored-by: Fugi <Fugiman47@gmail.com>
This commit is contained in:
Bjorn Lu 2024-10-14 15:12:42 +08:00 committed by GitHub
parent bbc72a1f31
commit b0493596dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Fixes accidental internal `setOnSetGetEnv` parameter rename that caused runtime errors

View file

@ -26,6 +26,8 @@ const _internalGetSecret = (key) => {
};
// used while generating the virtual module
setOnSetGetEnv((_reset) => {
// biome-ignore lint/correctness/noUnusedFunctionParameters: `reset` is used by the generated code
// biome-ignore lint/correctness/noUnusedVariables: `reset` is used by the generated code
setOnSetGetEnv((reset) => {
// @@ON_SET_GET_ENV@@
});