From 3d3a746512db8d757eb58095de2e5ff8614ff586 Mon Sep 17 00:00:00 2001 From: Yehor Podporinov Date: Fri, 19 Jan 2024 18:43:29 +0200 Subject: [PATCH] fix mapEnvCfg --- src/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 2e6e66f..6de2655 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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_/, ''), ) }