Add staging env

This commit is contained in:
Paul Frazee 2022-11-11 15:02:19 -06:00
parent 38ed9a7943
commit 210082be93
11 changed files with 41 additions and 14 deletions

View file

@ -3,8 +3,14 @@ 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 = 'http://localhost:2583'
export const DEFAULT_SERVICE =
BUILD === 'prod'
? 'http://localhost:2583' // TODO
: BUILD === 'staging'
? 'https://pds.staging.bsky.dev' // TODO
: 'http://localhost:2583'
const ROOT_STATE_STORAGE_KEY = 'root'
const STATE_FETCH_INTERVAL = 15e3