Skip to content

Commit

Permalink
fix mapEnvCfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehor Podporinov authored and Yehor Podporinov committed Jan 19, 2024
1 parent 9099caa commit 3d3a746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function _mapEnvCfg(env: ImportMetaEnv | typeof document.ENV): {
[k: string]: string | boolean | undefined
} {
return mapKeys(
pickBy(env, (v, k) => k.startsWith('VITE_')),
(v, k) => k.replace(/^VITE_/, ''),
pickBy(env, (v, k) => k.startsWith('VITE_APP_')),
(v, k) => k.replace(/^VITE_APP_/, ''),
)
}

0 comments on commit 3d3a746

Please sign in to comment.