diff options
author | Eric Bailey <git@esb.lol> | 2024-01-03 11:58:05 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 09:58:05 -0800 |
commit | 4baef7a2d5d57b437b4420ed6ba1f44b52995d4e (patch) | |
tree | 7dbb80a3c4cdd8e7c5725803c3f8eaf062313d89 | |
parent | 1b0c73a2a392fb4aa2e116d00c96744aa20ce0e7 (diff) | |
download | voidsky-4baef7a2d5d57b437b4420ed6ba1f44b52995d4e.tar.zst |
Update IS_PROD check (#2337)
* Update IS_PROD check to work now and after federation * Use correct sandbox PDS * Just use simple check for now
-rw-r--r-- | src/lib/constants.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/constants.ts b/src/lib/constants.ts index aa5983be7..e566d40d5 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -41,7 +41,7 @@ export function IS_LOCAL_DEV(url: string) { } export function IS_STAGING(url: string) { - return !IS_LOCAL_DEV(url) && !IS_PROD(url) + return url.startsWith('https://staging.bsky.dev') } export function IS_PROD(url: string) { @@ -51,7 +51,8 @@ export function IS_PROD(url: string) { // -prf return ( url.startsWith('https://bsky.social') || - url.startsWith('https://api.bsky.app') + url.startsWith('https://api.bsky.app') || + /bsky\.network\/?$/.test(url) ) } |