summaryrefslogtreecommitdiff
path: root/src/util/config.ts
blob: a01239874ca6a96f7d6fe55eb479379a92354c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import getConfig from "../lib/config.js";

const config = getConfig();

interface FrontendConfig {
  domain: string;
  email: string;
  siteName: string;
  showKofi: boolean;
}

export const frontendConfig = (): FrontendConfig => ({
  domain: config.general.domain,
  email: config.general.email,
  siteName: config.general.site_name,
  showKofi: config.general.show_kofi,
});