-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.ts
42 lines (32 loc) · 2.09 KB
/
settings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
export enum AuthMode {
SingleUser = "single_user",
Supertokens = "supertokens"
}
export const appName = import.meta.env.VITE_FFUN_APP_NAME || "Feeds Fun";
export const appDomain = import.meta.env.VITE_FFUN_APP_DOMAIN || "localhost";
export const appPort = import.meta.env.VITE_FFUN_APP_PORT || "5173";
export const environment = import.meta.env.VITE_FFUN_ENVIRONMENT || "local";
export const authMode = import.meta.env.VITE_FFUN_AUTH_MODE || AuthMode.SingleUser;
export const authSupertokensApiBasePath = import.meta.env.VITE_FFUN_AUTH_SUPERTOKENS_API_BASE_PATH || "/supertokens";
export const authSupertokensResendAfter = import.meta.env.VITE_FFUN_AUTH_SUPERTOKENS_RESEND_AFTER || 60 * 1000;
export const blog = import.meta.env.VITE_FFUN_BLOG || "https://blog.feeds.fun";
export const githubRepo = import.meta.env.VITE_FFUN_GITHUB_REPO || "https://github.com/Tiendil/feeds.fun";
export const discordInvite = import.meta.env.VITE_FFUN_DISCORD_INVITE || "https://discord.gg/C5RVusHQXy";
export const redditSubreddit = import.meta.env.VITE_FFUN_REDDIT_SUBREDDIT || "https://www.reddit.com/r/feedsfun/";
export const plausibleEnabled = import.meta.env.VITE_FFUN_PLAUSIBLE_ENABLED == "true" || false;
export const plausibleDomain = import.meta.env.VITE_FFUN_PLAUSIBLE_DOMAIN || "localhost";
export const plausibleScript = import.meta.env.VITE_FFUN_PLAUSIBLE_SCRIPT || "";
console.log("settings.appName", appName);
console.log("settings.appDomain", appDomain);
console.log("settings.appPort", appPort);
console.log("settings.environment", environment);
console.log("settings.authMode", authMode);
console.log("settings.authSupertokensApiBasePath", authSupertokensApiBasePath);
console.log("settings.authSupertokensResendAfter", authSupertokensResendAfter);
console.log("settings.blog", blog);
console.log("settings.githubRepo", githubRepo);
console.log("settings.discordInvite", discordInvite);
console.log("settings.redditSubreddit", redditSubreddit);
console.log("settings.plausibleEnabled", plausibleEnabled);
console.log("settings.plausibleDomain", plausibleDomain);
console.log("settings.plausibleScript", plausibleScript);