Skip to content

Collection of handy online tools for developers, with great UX.

fix(config): updated env values loading

Corentin Thomasset2f61c745f579
diff --git a/src/config.ts b/src/config.ts
index a73a916e..ce8e2efb 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -48,6 +48,10 @@ export const config = figue({
},
},
})
- .loadEnv(import.meta.env)
+ .loadEnv({
+ ...import.meta.env,
+ // Because the string 'import.meta.env.PACKAGE_VERSION' is statically replaced during build time (see 'define' in vite.config.ts)
+ PACKAGE_VERSION: import.meta.env.PACKAGE_VERSION
+ })
.validate()
.getConfig();