diff options
author | 2022-06-01 09:08:46 +0200 | |
---|---|---|
committer | 2022-06-01 09:08:46 +0200 | |
commit | 2f61c745f57962cf3bb9e2c1db4a3176df042808 (patch) | |
tree | 48a9eec2ddabb676bc0be7247ac39542e606fa00 /src/config.ts | |
parent | a9a6526e75103068102e8e098dfc2ad5fe902759 (diff) | |
download | it-tools-2f61c745f57962cf3bb9e2c1db4a3176df042808.tar.gz it-tools-2f61c745f57962cf3bb9e2c1db4a3176df042808.tar.zst it-tools-2f61c745f57962cf3bb9e2c1db4a3176df042808.zip |
fix(config): updated env values loading
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config.ts b/src/config.ts index a73a916..ce8e2ef 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(); |