Import baseUrl from config

This commit is contained in:
rmt/src 2023-06-18 16:02:46 +01:00
parent 54af194d92
commit 73c867ebc8
No known key found for this signature in database
GPG key ID: 6DD597637A8B880A
3 changed files with 6 additions and 4 deletions

View file

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