import { Config } from '../@types/config'
import { ROOT, APP, env, STORAGE_DIR, isInTsNode } from './foundation'
import PROXY from './addition/proxy'
import LOGGER from './addition/logger'
import ENV from './constant/env'

const config: Config = {
  ENV: env,
  ROOT,
  APP,
  LIMIT: 20,
  PORT: 8080,
  STORAGE_DIR,
  CROSS_ORIGIN: true,
  IS_LOCAL: env === ENV.local,
  PROXY,
  LOGGER,
  isInTsNode
}
export default config
