mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-16 13:27:06 +02:00
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
import * as _env from "$env/static/public";
|
|
|
|
const getEnv = (_key: string) => {
|
|
const env = _env as Record<string, string | undefined>;
|
|
const key = `PUBLIC_${_key}`;
|
|
|
|
if (key in env) {
|
|
return env[key];
|
|
}
|
|
}
|
|
|
|
const variables = {
|
|
HOST: getEnv('HOST'),
|
|
PLAUSIBLE_HOST: getEnv('PLAUSIBLE_HOST'),
|
|
PLAUSIBLE_ENABLED: getEnv('HOST') && getEnv('PLAUSIBLE_HOST'),
|
|
DEFAULT_API: getEnv('DEFAULT_API'),
|
|
TURNSTILE_KEY: getEnv('TURNSTILE_KEY'),
|
|
}
|
|
|
|
const contacts = {
|
|
github: "https://github.com/imputnet/cobalt",
|
|
twitter: "https://x.com/justusecobalt",
|
|
bluesky: "https://bsky.app/profile/cobalt.tools",
|
|
}
|
|
|
|
const partners = {
|
|
royalehosting: "https://royalehosting.net/?partner=cobalt",
|
|
}
|
|
|
|
const donate = {
|
|
stripe: "https://donate.stripe.com/3cs2cc6ew1Qda4wbII",
|
|
liberapay: "https://liberapay.com/imput/donate",
|
|
crypto: {
|
|
ethereum: "0x4B4cF23051c78c7A7E0eA09d39099621c46bc302",
|
|
monero: "4B1SNB6s8Pq1hxjNeKPEe8Qa8EP3zdL16Sqsa7QDoJcUecKQzEj9BMxWnEnTGu12doKLJBKRDUqnn6V9qfSdXpXi3Nw5Uod",
|
|
solana: "LJx4mxhvLJqDs65u4kxNgoKYGbZFfGCKGQjNApvfB7h",
|
|
litecoin: "ltc1qvp0xhrk2m7pa6p6z844qcslfyxv4p3vf95rhna",
|
|
bitcoin: "bc1qlvcnlnyzfsgnuxyxsv3k0p0q0yln0azjpadyx4",
|
|
ton: "UQA3SO-hHZq1oCCT--u6or6ollB8fd2o52aD8mXiLk9iDZd3",
|
|
},
|
|
other: {
|
|
boosty: "https://boosty.to/wukko/donate",
|
|
}
|
|
};
|
|
|
|
const apiURL = "https://api.cobalt.tools";
|
|
|
|
export { donate, apiURL, contacts, partners };
|
|
export default variables;
|