about summary refs log tree commit diff
path: root/src/state/index.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-15 15:09:50 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-15 15:09:50 -0600
commit3725a2eed10707194bc9554a9c58166e9324dfc8 (patch)
treef167b4541f86eb5b9ff8629c0bbb6486644f498b /src/state/index.ts
parent9a6df95adecaf3935fdbd58d893fca6489a040b9 (diff)
downloadvoidsky-3725a2eed10707194bc9554a9c58166e9324dfc8.tar.zst
Add a server instance selector and drop env vars
Diffstat (limited to 'src/state/index.ts')
-rw-r--r--src/state/index.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/state/index.ts b/src/state/index.ts
index a886e7611..b16b51648 100644
--- a/src/state/index.ts
+++ b/src/state/index.ts
@@ -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