All files / lib config.ts

85.71% Statements 6/7
33.33% Branches 2/6
0% Functions 0/1
85.71% Lines 6/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19      1x   1x 1x   1x       1x   1x        
type Env = 'production' | 'development';
 
export const APP_ENV: Env =
  process.env.APP_ENV === 'production' ? process.env.APP_ENV : 'development';
 
export const isProduction = APP_ENV === 'production';
export const isDev = APP_ENV === 'development';
 
export const hackleKey = isProduction
  ? 'CLPnPYltSDcVGcVAsNrIOMMeK49vJIB4'
  : 'DaQ3SZK32pERirsvzbLY0yNyhlD7GkIk';
 
export const googleMapKey = 'AIzaSyB2UmDFt3XkYxXJeBQIGm-_AeUp32YcywA';
 
export const getLoginUrl = (redirectUrl: string) =>
  `https://account.realworld.to/auth/signin?redirectUrl=${encodeURI(redirectUrl)}${
    isProduction ? '' : '&tset=htua'
  }`;