fix(mobile): add hardcoded production env fallbacks to prevent launch crash

This commit is contained in:
AyrisAI
2026-08-20 02:38:37 +03:00
parent 856347cabd
commit f5eebed0a7
3 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
const WEB_BASE_URL = process.env.EXPO_PUBLIC_WEB_URL || "http://localhost:3000";
const DEFAULT_WEB_URL = "https://menul.io";
const WEB_BASE_URL = process.env.EXPO_PUBLIC_WEB_URL || DEFAULT_WEB_URL;
export function getPublicMenuUrl(slug: string): string {
if (WEB_BASE_URL.includes("menul.io")) {