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();