As the OSS project only controls the mermaid.live domain, we're adding an env variable to let anyone who is self hosting live editor to set their own privacy policy, or to hide the button if they want to.
18 lines
515 B
TypeScript
18 lines
515 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
interface ImportMetaEnv {
|
|
readonly MERMAID_RENDERER_URL?: string;
|
|
readonly MERMAID_KROKI_RENDERER_URL?: string;
|
|
readonly MERMAID_ANALYTICS_URL?: string;
|
|
readonly MERMAID_DOCS_URL?: string;
|
|
readonly MERMAID_DOMAIN?: string;
|
|
readonly MERMAID_IS_ENABLED_MERMAID_CHART_LINKS?: string;
|
|
readonly MERMAID_PRIVACY_POLICY_URL?: string;
|
|
readonly MERMAID_HIDE_PRIVACY_POLICY?: string;
|
|
// more env variables...
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|