From c9ea301ac136c09cfc4f132faedadacd7c678e98 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 9 Sep 2022 07:40:43 -0400 Subject: [PATCH] Use compiled-in environment variables. --- src/lib/state.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/state.js b/src/lib/state.js index 9ede0e5..5597a16 100644 --- a/src/lib/state.js +++ b/src/lib/state.js @@ -45,8 +45,7 @@ const buildMockItem = () => { const mockItems = Array(100).fill(buildMockItem, 0).map(mocker => mocker()) -export const testMode = process?.env?.KAFKA_FRONTEND_TEST_MODE === 'true' -console.log({ testMode }) +export const testMode = import.meta.env.VITE_KAFKA_FRONTEND_DEMO === 'true' export const state = writable({ items: [],