mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-12 00:51:33 -04:00
Import baseUrl from config
This commit is contained in:
parent
54af194d92
commit
73c867ebc8
3 changed files with 6 additions and 4 deletions
|
@ -63,7 +63,8 @@ export const config = figue({
|
|||
.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,
|
||||
PACKAGE_VERSION: import.meta.env?.PACKAGE_VERSION,
|
||||
BASE_URL: import.meta.env?.BASE_URL || process.env.BASE_URL,
|
||||
})
|
||||
.validate()
|
||||
.getConfig();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue