You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			421 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			421 B
		
	
	
	
		
			TypeScript
		
	
| function envAppInstanceIncludes(prefix: string) {
 | |
|   if (!process.env.NODE_APP_INSTANCE) {
 | |
|     return false;
 | |
|   }
 | |
|   return !!process.env.NODE_APP_INSTANCE.includes(prefix);
 | |
| }
 | |
| 
 | |
| export function isDevProd() {
 | |
|   return envAppInstanceIncludes('devprod');
 | |
| }
 | |
| 
 | |
| export function isTestNet() {
 | |
|   return envAppInstanceIncludes('testnet');
 | |
| }
 | |
| 
 | |
| export function isTestIntegration() {
 | |
|   return envAppInstanceIncludes('test-integration');
 | |
| }
 |