regenbogenkarte/ts/env.d.ts
nachtjasmin b15bfc0a73 feat: add goatcounter integration
To enable the goatcounter integration, the variable
VITE_QUEER_LEXIKON_PRIVATE must be set to "true". This check is
intentionally added for development environments so that all dev
environments from possible forks do not modify the statistics by
accident.
2022-09-08 17:10:49 +02:00

12 lines
430 B
TypeScript

interface ImportMeta {
readonly env: ImportMetaEnv;
}
interface ImportMetaEnv {
// This variable is set in our GitHub Actions for adding additional features
// that should be only available on karte.queer-lexikon.net and not
// for development purposes.
//
// Although it's actually a boolean, all environment variables are strings, so we
// type it as string here as well.
readonly VITE_QUEER_LEXIKON_PRIVATE?: string;
}