ai/at
1
0
Files
at/ios/patching/024-social-app-ios-disable-external-services.patch
2026-01-16 10:54:42 +09:00

29 lines
1.1 KiB
Diff

diff --git a/src/env/common.ts b/src/env/common.ts
index 04e98c49c..a4ee47932 100644
--- a/src/env/common.ts
+++ b/src/env/common.ts
@@ -107,19 +107,17 @@ export const GCP_PROJECT_ID: number =
/**
* URLs for the app config web worker. Can be a
* locally running server, see `env.example` for more.
+ * Disabled for self-hosted environment to avoid CORS errors
*/
export const GEOLOCATION_DEV_URL = process.env.GEOLOCATION_DEV_URL
export const GEOLOCATION_PROD_URL = `https://ip.bsky.app`
-export const GEOLOCATION_URL = IS_DEV
- ? (GEOLOCATION_DEV_URL ?? GEOLOCATION_PROD_URL)
- : GEOLOCATION_PROD_URL
+export const GEOLOCATION_URL = null
/**
* URLs for the live-event config web worker. Can be a
* locally running server, see `env.example` for more.
+ * Disabled for self-hosted environment
*/
export const LIVE_EVENTS_DEV_URL = process.env.LIVE_EVENTS_DEV_URL
export const LIVE_EVENTS_PROD_URL = `https://live-events.workers.bsky.app`
-export const LIVE_EVENTS_URL = IS_DEV
- ? (LIVE_EVENTS_DEV_URL ?? LIVE_EVENTS_PROD_URL)
- : LIVE_EVENTS_PROD_URL
+export const LIVE_EVENTS_URL = null