aboutsummaryrefslogtreecommitdiff
path: root/utils/env.tsx
blob: fe567019be356d2b561bb366d0058476333b51fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import assert from './assert';

const SITE_DOMAIN = process.env.SITE_DOMAIN;

enum SiteDomain {
  EXANDERIO = "exander.io",
  FLU0R1NENET = "flu0r1ne.net"
};

assert(
  SITE_DOMAIN === SiteDomain.EXANDERIO ||
  SITE_DOMAIN === SiteDomain.FLU0R1NENET,
  `Please set SITE_DOMAIN`
);

const DISPLAY_DOMAIN = SITE_DOMAIN === SiteDomain.EXANDERIO ? 'al.exander.io' : 'flu0r1ne.net';

export {
  SITE_DOMAIN,
  SiteDomain,
  DISPLAY_DOMAIN,
};