Use compiled-in environment variables.
This commit is contained in:
parent
6b0d49cb02
commit
c9ea301ac1
|
@ -45,8 +45,7 @@ const buildMockItem = () => {
|
||||||
|
|
||||||
const mockItems = Array(100).fill(buildMockItem, 0).map(mocker => mocker())
|
const mockItems = Array(100).fill(buildMockItem, 0).map(mocker => mocker())
|
||||||
|
|
||||||
export const testMode = process?.env?.KAFKA_FRONTEND_TEST_MODE === 'true'
|
export const testMode = import.meta.env.VITE_KAFKA_FRONTEND_DEMO === 'true'
|
||||||
console.log({ testMode })
|
|
||||||
|
|
||||||
export const state = writable({
|
export const state = writable({
|
||||||
items: [],
|
items: [],
|
||||||
|
|
Loading…
Reference in New Issue