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

const config = getConfig();

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

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