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
This commit is contained in:
		
							parent
							
								
									1b0c73a2a3
								
							
						
					
					
						commit
						4baef7a2d5
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -41,7 +41,7 @@ export function IS_LOCAL_DEV(url: string) { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export function IS_STAGING(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) { | export function IS_PROD(url: string) { | ||||||
|  | @ -51,7 +51,8 @@ export function IS_PROD(url: string) { | ||||||
|   // -prf
 |   // -prf
 | ||||||
|   return ( |   return ( | ||||||
|     url.startsWith('https://bsky.social') || |     url.startsWith('https://bsky.social') || | ||||||
|     url.startsWith('https://api.bsky.app') |     url.startsWith('https://api.bsky.app') || | ||||||
|  |     /bsky\.network\/?$/.test(url) | ||||||
|   ) |   ) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue