All files / lib config.ts

0% Statements 0/10
0% Branches 0/4
100% Functions 0/0
0% Lines 0/10

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 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37                                                                         
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 GOOGLE_CLIENT_ID =
  '298090713580-oh335gidob0nt0l19klcqt0mn947smfa.apps.googleusercontent.com';
 
export const ADMIN_SERVER_HOST = {
  development: 'api-test.adventure.realworld.to',
  production: 'api.adventure.realworld.to'
}[APP_ENV];
 
export const AUTH_SERVER_HOST = {
  production: 'auth.realworld.to', // FIXME: 아닐수도 있음
  development: 'auth-test.realworld.to'
}[APP_ENV];
 
export const INTEGRATE_LOGIN_HOST = {
  production: 'account.realworld.to',
  development: 'account-test.realworld.to'
}[APP_ENV];
 
export const CORE_SERVER_HOST = {
  development: 'api-test.realworld.to',
  production: 'api.realworld.to'
}[APP_ENV];
 
export const GOOGLE_MAP_API_KEY = 'AIzaSyB2UmDFt3XkYxXJeBQIGm-_AeUp32YcywA';
 
export const HACKLE_KEY = isProduction
  ? 'CLPnPYltSDcVGcVAsNrIOMMeK49vJIB4'
  : 'DaQ3SZK32pERirsvzbLY0yNyhlD7GkIk';