Skip to content

Commit b049359

Browse files
bluwyFugiTech
andauthored
Fix setOnSetGetEnv parameter name (#12220)
Co-authored-by: Fugi <[email protected]>
1 parent bbc72a1 commit b049359

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/bright-bananas-run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"astro": patch
3+
---
4+
5+
Fixes accidental internal `setOnSetGetEnv` parameter rename that caused runtime errors

packages/astro/templates/env/module.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ const _internalGetSecret = (key) => {
2626
};
2727

2828
// used while generating the virtual module
29-
setOnSetGetEnv((_reset) => {
29+
// biome-ignore lint/correctness/noUnusedFunctionParameters: `reset` is used by the generated code
30+
// biome-ignore lint/correctness/noUnusedVariables: `reset` is used by the generated code
31+
setOnSetGetEnv((reset) => {
3032
// @@ON_SET_GET_ENV@@
3133
});

0 commit comments

Comments
 (0)