From 2f61c745f57962cf3bb9e2c1db4a3176df042808 Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Wed, 1 Jun 2022 09:08:46 +0200 Subject: [PATCH] fix(config): updated env values loading --- src/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();