Add a server instance selector and drop env vars
This commit is contained in:
parent
9a6df95ade
commit
3725a2eed1
14 changed files with 383 additions and 174 deletions
|
@ -3,14 +3,12 @@ import {sessionClient as AtpApi} from '../third-party/api'
|
|||
import {RootStoreModel} from './models/root-store'
|
||||
import * as libapi from './lib/api'
|
||||
import * as storage from './lib/storage'
|
||||
import {BUILD} from '../env'
|
||||
|
||||
export const DEFAULT_SERVICE =
|
||||
BUILD === 'prod'
|
||||
? 'http://localhost:2583' // TODO
|
||||
: BUILD === 'staging'
|
||||
? 'https://pds.staging.bsky.dev' // TODO
|
||||
: 'http://localhost:2583'
|
||||
export const IS_PROD_BUILD = true
|
||||
export const LOCAL_DEV_SERVICE = 'http://localhost:2583'
|
||||
export const STAGING_SERVICE = 'https://pds.staging.bsky.dev'
|
||||
export const PROD_SERVICE = 'https://plc.bsky.social'
|
||||
export const DEFAULT_SERVICE = IS_PROD_BUILD ? PROD_SERVICE : LOCAL_DEV_SERVICE
|
||||
const ROOT_STATE_STORAGE_KEY = 'root'
|
||||
const STATE_FETCH_INTERVAL = 15e3
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue