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:
parent
bbc72a1f31
commit
b0493596dc
2 changed files with 8 additions and 1 deletions
5
.changeset/bright-bananas-run.md
Normal file
5
.changeset/bright-bananas-run.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Fixes accidental internal `setOnSetGetEnv` parameter rename that caused runtime errors
|
4
packages/astro/templates/env/module.mjs
vendored
4
packages/astro/templates/env/module.mjs
vendored
|
@ -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@@
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue