diff --git a/.env.example b/.env.example index 96a1548d66..e90541cabb 100644 --- a/.env.example +++ b/.env.example @@ -34,5 +34,8 @@ EXPO_PUBLIC_SENTRY_DSN= # Bitdrift API key. If undefined, Bitdrift will be disabled. EXPO_PUBLIC_BITDRIFT_API_KEY= -# bapp-config web worker URL -BAPP_CONFIG_DEV_URL= +# geolocation web worker URL +GEOLOCATION_DEV_URL= + +# live-events web worker URL +LIVE_EVENTS_DEV_URL= diff --git a/src/env/common.ts b/src/env/common.ts index b0d75d403b..04e98c49cb 100644 --- a/src/env/common.ts +++ b/src/env/common.ts @@ -108,8 +108,18 @@ export const GCP_PROJECT_ID: number = * URLs for the app config web worker. Can be a * locally running server, see `env.example` for more. */ -export const BAPP_CONFIG_DEV_URL = process.env.BAPP_CONFIG_DEV_URL -export const BAPP_CONFIG_PROD_URL = `https://ip.bsky.app` -export const BAPP_CONFIG_URL = IS_DEV - ? (BAPP_CONFIG_DEV_URL ?? BAPP_CONFIG_PROD_URL) - : BAPP_CONFIG_PROD_URL +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 + +/** + * URLs for the live-event config web worker. Can be a + * locally running server, see `env.example` for more. + */ +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 diff --git a/src/geolocation/const.ts b/src/geolocation/const.ts index b12f37140f..653e829bad 100644 --- a/src/geolocation/const.ts +++ b/src/geolocation/const.ts @@ -1,7 +1,7 @@ -import {BAPP_CONFIG_URL} from '#/env' +import {GEOLOCATION_URL} from '#/env' import {type Geolocation} from '#/geolocation/types' -export const GEOLOCATION_SERVICE_URL = `${BAPP_CONFIG_URL}/geolocation` +export const GEOLOCATION_SERVICE_URL = `${GEOLOCATION_URL}/geolocation` /** * Default geolocation config.