fix(config): updated env values loading

This commit is contained in:
Corentin Thomasset 2022-06-01 09:08:46 +02:00
parent a9a6526e75
commit 2f61c745f5
No known key found for this signature in database
GPG key ID: 3103EB5E79496F9C

View file

@ -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() .validate()
.getConfig(); .getConfig();