evOo-local/apps/mobile/app.config.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

25 lines
720 B
TypeScript

import type { ConfigContext, ExpoConfig } from "expo/config";
export default ({ config }: ConfigContext): ExpoConfig => {
if (process.env.EAS_BUILD_PROFILE === "production") {
const apiUrl = process.env.EXPO_PUBLIC_API_URL;
if (!apiUrl) {
throw new Error(
"EXPO_PUBLIC_API_URL must be set in the EAS production environment before building for the App Store.",
);
}
let parsed: URL;
try {
parsed = new URL(apiUrl);
} catch {
throw new Error("EXPO_PUBLIC_API_URL must be a valid URL.");
}
if (parsed.protocol !== "https:") {
throw new Error("EXPO_PUBLIC_API_URL must use HTTPS for production builds.");
}
}
return config as ExpoConfig;
};