mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 04:11:02 +00:00
1 line
5.1 KiB
Plaintext
1 line
5.1 KiB
Plaintext
{"dependencies":[{"name":"expo-constants","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":63},"end":{"line":3,"column":39,"index":102}}],"key":"pPv5KzfRT0rL6NCr7G9k0o4d1W8=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"API_BASE_URL\", {\n enumerable: true,\n get: function () {\n return API_BASE_URL;\n }\n });\n Object.defineProperty(exports, \"API_ENDPOINTS\", {\n enumerable: true,\n get: function () {\n return API_ENDPOINTS;\n }\n });\n var _expoConstants = require(_dependencyMap[0], \"expo-constants\");\n var Constants = _interopDefault(_expoConstants);\n // API Configuration\n // Single source of truth for backend URL\n\n const getBackendUrl = () => {\n // Try expo-constants first, then process.env, then fallback\n const url = Constants.default.expoConfig?.extra?.backendUrl || \"https://digital-kurdistan.preview.emergentagent.com\";\n if (!url) {\n console.error('⚠️ Backend URL not found in expo-constants or env vars! Using fallback.');\n return 'http://localhost:8001';\n }\n console.log('✅ Backend URL loaded:', url);\n console.log('📱 Source: expo-constants =', Constants.default.expoConfig?.extra?.backendUrl);\n console.log('🔧 Source: process.env =', \"https://digital-kurdistan.preview.emergentagent.com\");\n return url;\n };\n const API_BASE_URL = getBackendUrl();\n const API_ENDPOINTS = {\n AUTH_SIGNUP: `${API_BASE_URL}/api/auth/signup`,\n AUTH_SIGNIN: `${API_BASE_URL}/api/auth/signin`,\n AUTH_USER: userId => `${API_BASE_URL}/api/auth/user/${userId}`,\n VERIFY_TURNSTILE: `${API_BASE_URL}/api/verify-turnstile`,\n BALANCE: `${API_BASE_URL}/api/blockchain/balance`\n };\n});","lineCount":49,"map":[[12,2,21,0,"Object"],[12,8,21,0],[12,9,21,0,"defineProperty"],[12,23,21,0],[12,24,21,0,"exports"],[12,31,21,0],[13,4,21,0,"enumerable"],[13,14,21,0],[14,4,21,0,"get"],[14,7,21,0],[14,18,21,0,"get"],[14,19,21,0],[15,6,21,0],[15,13,21,0,"API_BASE_URL"],[15,25,21,0],[16,4,21,0],[17,2,21,0],[18,2,23,0,"Object"],[18,8,23,0],[18,9,23,0,"defineProperty"],[18,23,23,0],[18,24,23,0,"exports"],[18,31,23,0],[19,4,23,0,"enumerable"],[19,14,23,0],[20,4,23,0,"get"],[20,7,23,0],[20,18,23,0,"get"],[20,19,23,0],[21,6,23,0],[21,13,23,0,"API_ENDPOINTS"],[21,26,23,0],[22,4,23,0],[23,2,23,0],[24,2,3,0],[24,6,3,0,"_expoConstants"],[24,20,3,0],[24,23,3,0,"require"],[24,30,3,0],[24,31,3,0,"_dependencyMap"],[24,45,3,0],[25,2,3,0],[25,6,3,0,"Constants"],[25,15,3,0],[25,18,3,0,"_interopDefault"],[25,33,3,0],[25,34,3,0,"_expoConstants"],[25,48,3,0],[26,2,1,0],[27,2,2,0],[29,2,5,0],[29,8,5,6,"getBackendUrl"],[29,21,5,19],[29,24,5,22,"getBackendUrl"],[29,25,5,22],[29,30,5,36],[30,4,6,2],[31,4,7,2],[31,10,7,8,"url"],[31,13,7,11],[31,16,7,14,"Constants"],[31,25,7,23],[31,26,7,23,"default"],[31,33,7,23],[31,34,7,24,"expoConfig"],[31,44,7,34],[31,46,7,36,"extra"],[31,51,7,41],[31,53,7,43,"backendUrl"],[31,63,7,53],[31,120,8,49],[32,4,10,2],[32,8,10,6],[32,9,10,7,"url"],[32,12,10,10],[32,14,10,12],[33,6,11,4,"console"],[33,13,11,11],[33,14,11,12,"error"],[33,19,11,17],[33,20,11,18],[33,93,11,91],[33,94,11,92],[34,6,12,4],[34,13,12,11],[34,36,12,34],[35,4,13,2],[36,4,15,2,"console"],[36,11,15,9],[36,12,15,10,"log"],[36,15,15,13],[36,16,15,14],[36,39,15,37],[36,41,15,39,"url"],[36,44,15,42],[36,45,15,43],[37,4,16,2,"console"],[37,11,16,9],[37,12,16,10,"log"],[37,15,16,13],[37,16,16,14],[37,45,16,43],[37,47,16,45,"Constants"],[37,56,16,54],[37,57,16,54,"default"],[37,64,16,54],[37,65,16,55,"expoConfig"],[37,75,16,65],[37,77,16,67,"extra"],[37,82,16,72],[37,84,16,74,"backendUrl"],[37,94,16,84],[37,95,16,85],[38,4,17,2,"console"],[38,11,17,9],[38,12,17,10,"log"],[38,15,17,13],[38,16,17,14],[38,42,17,40],[38,97,17,77],[38,98,17,78],[39,4,18,2],[39,11,18,9,"url"],[39,14,18,12],[40,2,19,0],[40,3,19,1],[41,2,21,7],[41,8,21,13,"API_BASE_URL"],[41,20,21,25],[41,23,21,28,"getBackendUrl"],[41,36,21,41],[41,37,21,42],[41,38,21,43],[42,2,23,7],[42,8,23,13,"API_ENDPOINTS"],[42,21,23,26],[42,24,23,29],[43,4,24,2,"AUTH_SIGNUP"],[43,15,24,13],[43,17,24,15],[43,20,24,18,"API_BASE_URL"],[43,32,24,30],[43,50,24,48],[44,4,25,2,"AUTH_SIGNIN"],[44,15,25,13],[44,17,25,15],[44,20,25,18,"API_BASE_URL"],[44,32,25,30],[44,50,25,48],[45,4,26,2,"AUTH_USER"],[45,13,26,11],[45,15,26,14,"userId"],[45,21,26,28],[45,25,26,33],[45,28,26,36,"API_BASE_URL"],[45,40,26,48],[45,58,26,66,"userId"],[45,64,26,72],[45,66,26,74],[46,4,27,2,"VERIFY_TURNSTILE"],[46,20,27,18],[46,22,27,20],[46,25,27,23,"API_BASE_URL"],[46,37,27,35],[46,60,27,58],[47,4,28,2,"BALANCE"],[47,11,28,9],[47,13,28,11],[47,16,28,14,"API_BASE_URL"],[47,28,28,26],[48,2,29,0],[48,3,29,1],[49,0,29,2],[49,3]],"functionMap":{"names":["<global>","getBackendUrl","API_ENDPOINTS.AUTH_USER"],"mappings":"AAA;sBCI;CDc;aEO,6DF"},"hasCjsExports":false},"type":"js/module"}]} |