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.
11 lines
587 B
TypeScript
11 lines
587 B
TypeScript
export const env = {
|
|
analyticsUrl: import.meta.env.MERMAID_ANALYTICS_URL ?? '',
|
|
docsUrl: import.meta.env.MERMAID_DOCS_URL ?? 'https://mermaid.js.org',
|
|
domain: import.meta.env.MERMAID_DOMAIN ?? '',
|
|
hidePrivacyPolicy: import.meta.env.MERMAID_HIDE_PRIVACY_POLICY === 'true',
|
|
isEnabledMermaidChartLinks: import.meta.env.MERMAID_IS_ENABLED_MERMAID_CHART_LINKS === 'true',
|
|
krokiRendererUrl: import.meta.env.MERMAID_KROKI_RENDERER_URL ?? '',
|
|
privacyPolicyUrl: import.meta.env.MERMAID_PRIVACY_POLICY_URL ?? '',
|
|
rendererUrl: import.meta.env.MERMAID_RENDERER_URL ?? ''
|
|
} as const;
|