Skip to content

Commit

Permalink
Fix setOnSetGetEnv parameter name (#12220)
Browse files Browse the repository at this point in the history
Co-authored-by: Fugi <Fugiman47@gmail.com>
  • Loading branch information
bluwy and FugiTech authored Oct 14, 2024
1 parent bbc72a1 commit b049359
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/bright-bananas-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Fixes accidental internal `setOnSetGetEnv` parameter rename that caused runtime errors
4 changes: 3 additions & 1 deletion packages/astro/templates/env/module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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@@
});

0 comments on commit b049359

Please sign in to comment.