mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 07:46:15 -04:00
fix(config): updated env values loading
This commit is contained in:
parent
a9a6526e75
commit
2f61c745f5
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue