Update prod service URL

zio/stable
Paul Frazee 2022-11-16 10:06:57 -06:00
parent 4eb993e885
commit 64d095a96b
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import * as storage from './lib/storage'
export const IS_PROD_BUILD = true export const IS_PROD_BUILD = true
export const LOCAL_DEV_SERVICE = 'http://localhost:2583' export const LOCAL_DEV_SERVICE = 'http://localhost:2583'
export const STAGING_SERVICE = 'https://pds.staging.bsky.dev' export const STAGING_SERVICE = 'https://pds.staging.bsky.dev'
export const PROD_SERVICE = 'https://plc.bsky.social' export const PROD_SERVICE = 'https://bsky.social'
export const DEFAULT_SERVICE = IS_PROD_BUILD ? PROD_SERVICE : LOCAL_DEV_SERVICE export const DEFAULT_SERVICE = IS_PROD_BUILD ? PROD_SERVICE : LOCAL_DEV_SERVICE
const ROOT_STATE_STORAGE_KEY = 'root' const ROOT_STATE_STORAGE_KEY = 'root'
const STATE_FETCH_INTERVAL = 15e3 const STATE_FETCH_INTERVAL = 15e3

View File

@ -112,7 +112,7 @@ export function toNiceDomain(url: string): string {
try { try {
const urlp = new URL(url) const urlp = new URL(url)
if (`https://${urlp.host}` === PROD_SERVICE) { if (`https://${urlp.host}` === PROD_SERVICE) {
return 'Bluesky.Social' return 'Bluesky Social'
} }
return urlp.host return urlp.host
} catch (e) { } catch (e) {