5f40163
1
2
3
4
5
6
7
8
9
10
export function shouldStartMockWorker({ mockApi = import.meta.env.VITE_MOCK_API, hasWindow = typeof window !== "undefined", }: { mockApi?: string; hasWindow?: boolean; } = {}): boolean { return hasWindow && mockApi === "true"; }