chore: initialize monorepo with project scaffolding, configs, and CI setup
This commit is contained in:
14
apps/explorer-web/src/config.ts
Normal file
14
apps/explorer-web/src/config.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export type DataMode = "mock" | "live";
|
||||
|
||||
export interface ExplorerConfig {
|
||||
dataMode: DataMode;
|
||||
mockBasePath: string;
|
||||
apiBaseUrl: string;
|
||||
}
|
||||
|
||||
export const CONFIG: ExplorerConfig = {
|
||||
// Toggle between "mock" (static JSON under public/mock/) and "live" coordinator APIs.
|
||||
dataMode: (import.meta.env?.VITE_DATA_MODE as DataMode) ?? "mock",
|
||||
mockBasePath: "/mock",
|
||||
apiBaseUrl: import.meta.env?.VITE_COORDINATOR_API ?? "http://localhost:8000",
|
||||
};
|
||||
Reference in New Issue
Block a user