Update env config for new worker setup
This commit is contained in:
+5
-2
@@ -34,5 +34,8 @@ EXPO_PUBLIC_SENTRY_DSN=
|
|||||||
# Bitdrift API key. If undefined, Bitdrift will be disabled.
|
# Bitdrift API key. If undefined, Bitdrift will be disabled.
|
||||||
EXPO_PUBLIC_BITDRIFT_API_KEY=
|
EXPO_PUBLIC_BITDRIFT_API_KEY=
|
||||||
|
|
||||||
# bapp-config web worker URL
|
# geolocation web worker URL
|
||||||
BAPP_CONFIG_DEV_URL=
|
GEOLOCATION_DEV_URL=
|
||||||
|
|
||||||
|
# live-events web worker URL
|
||||||
|
LIVE_EVENTS_DEV_URL=
|
||||||
|
|||||||
Vendored
+15
-5
@@ -108,8 +108,18 @@ export const GCP_PROJECT_ID: number =
|
|||||||
* URLs for the app config web worker. Can be a
|
* URLs for the app config web worker. Can be a
|
||||||
* locally running server, see `env.example` for more.
|
* locally running server, see `env.example` for more.
|
||||||
*/
|
*/
|
||||||
export const BAPP_CONFIG_DEV_URL = process.env.BAPP_CONFIG_DEV_URL
|
export const GEOLOCATION_DEV_URL = process.env.GEOLOCATION_DEV_URL
|
||||||
export const BAPP_CONFIG_PROD_URL = `https://ip.bsky.app`
|
export const GEOLOCATION_PROD_URL = `https://ip.bsky.app`
|
||||||
export const BAPP_CONFIG_URL = IS_DEV
|
export const GEOLOCATION_URL = IS_DEV
|
||||||
? (BAPP_CONFIG_DEV_URL ?? BAPP_CONFIG_PROD_URL)
|
? (GEOLOCATION_DEV_URL ?? GEOLOCATION_PROD_URL)
|
||||||
: BAPP_CONFIG_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
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {BAPP_CONFIG_URL} from '#/env'
|
import {GEOLOCATION_URL} from '#/env'
|
||||||
import {type Geolocation} from '#/geolocation/types'
|
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.
|
* Default geolocation config.
|
||||||
|
|||||||
Reference in New Issue
Block a user