MCPcopy Create free account
hub / github.com/FunAudioLLM/Fun-Audio-Chat / parseEnv

Function parseEnv

web_demo/client/src/env.ts:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4};
5
6const parseEnv = (): ENV => {
7 const VITE_QUEUE_API_PATH = import.meta.env.VITE_QUEUE_API_PATH;
8
9 if (!VITE_QUEUE_API_PATH) {
10 throw new Error("VITE_QUEUE_API_PATH is not defined");
11 }
12
13 return {
14 VITE_QUEUE_API_PATH,
15 VITE_ENV: import.meta.env.DEV ? 'development' : 'production',
16 };
17};
18
19export const env = parseEnv();

Callers 1

env.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected