summaryrefslogtreecommitdiff
path: root/src/util/config.ts
blob: c65fdb0fef97d301e06007fa7d7e830c06c9ea68 (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,
});