1export const FIREBASE_CONFIG = { 2 apiKey: "AIzaSyBeZU4A2BnUBXUcIou1Y6Psj4zzGiu6mUM", 3 authDomain: "smart-guard-prod.firebaseapp.com", 4 projectId: "smart-guard-prod", 5 storageBucket: "smart-guard-prod.firebasestorage.app", 6 messagingSenderId: "1014549556894", 7 appId: "1:1014549556894:web:ae9ae92ea3189e8235d58f", 8}; 9 10const MARKETING_WEBSITE_HOSTS = new Set([ 11 "webfilter.io", 12 "www.webfilter.io", 13 "siag.ai", 14 "www.siag.ai", 15 "smart-guard.io", 16 "www.smart-guard.io", 17]); 18 19function isLocalDevHostname(hostname) { 20 return ( 21 hostname === "localhost" || 22 hostname === "127.0.0.1" || 23 hostname === "::1" || 24 hostname === "[::]" || 25 hostname === "::" 26 ); 27} 28 29function resolveCloudUrl() { 30 if (typeof window === "undefined") { 31 return "https://api.webfilter.io"; 32 } 33 34 const { hostname, protocol, port } = window.location; 35 36 if (isLocalDevHostname(hostname)) { 37 // Same-origin billing proxy (serve-local.mjs) matches production Pages routing. 38 return port ? `${protocol}//${hostname}:${port}` : window.location.origin; 39 } 40 41 if (protocol === "https:" && MARKETING_WEBSITE_HOSTS.has(hostname)) { 42 return window.location.origin; 43 } 44 45 return "https://api.webfilter.io"; 46} 47 48export const CLOUD_URL = resolveCloudUrl(); 49 50// Register this Return URL on the Apple Services ID used in Firebase Auth: 51// https://smart-guard-prod.firebaseapp.com/__/auth/handler 52export const FIREBASE_APPLE_AUTH_HANDLER_URL = `https://${FIREBASE_CONFIG.authDomain}/__/auth/handler`;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.