index.ts 385 Bytes
Newer Older
Ken's avatar
Ken committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import environmentConfig from "./environmentConfig";
import { storageKey } from "./storageKey";

const isDevEnv =
  !process.env.NODE_ENV || process.env.NODE_ENV === "development";
const envConfig = isDevEnv
  ? environmentConfig.development
  : environmentConfig.production;

const Config = {
  isDevEnv,
  storageKey,
  apiConfig: {
    ...envConfig,
  },
};

export default Config;