Files
entdb-entitlements-iOS/src/lib/env.ts
T
cc 53aeb562b7 Fetch data from separate GitHub Pages instead of bundling
- Add NEXT_PUBLIC_DATA_URL env var pointing to entdb-data Pages
- Refactor env.ts: dataURL, withBase (cleaner naming)
- Remove data download step from build workflow
2026-04-15 17:10:29 +02:00

6 lines
244 B
TypeScript

export const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
export const dataURL = process.env.NEXT_PUBLIC_DATA_URL || `${basePath}/data`;
export const withBase = (path: string) =>
basePath + (path.startsWith("/") ? path : `/${path}`);