Skip to content

Commit 79191c2

Browse files
liudmylasovetovsViktorSvertoka
authored andcommitted
(SP: 1) [FIX] normalize APP ENV before local runtime check
1 parent 0449553 commit 79191c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/db/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dotenv.config();
1111

1212
type AppDatabase = PgDatabase<PgQueryResultHKT, typeof schema>;
1313

14-
const APP_ENV = process.env.APP_ENV?.trim();
14+
const APP_ENV = process.env.APP_ENV?.trim().toLowerCase();
1515
const IS_LOCAL_ENV = APP_ENV === 'local';
1616
const STRICT_LOCAL_DB_GUARD = process.env.SHOP_STRICT_LOCAL_DB === '1';
1717
const REQUIRED_LOCAL_DB_URL = process.env.SHOP_REQUIRED_DATABASE_URL_LOCAL;

0 commit comments

Comments
 (0)