mirror of
https://github.com/mermaid-js/mermaid-live-editor.git
synced 2025-03-18 17:16:21 +03:00
Use netlify to redirect users
This commit is contained in:
@@ -3,4 +3,10 @@
|
||||
MERMAID_DOMAIN = 'mermaid.live'
|
||||
MERMAID_RENDERER_URL = 'https://mermaid.ink'
|
||||
MERMAID_KROKI_RENDERER_URL = 'https://kroki.io'
|
||||
MERMAID_IS_ENABLED_MERMAID_CHART_LINKS ='true'
|
||||
MERMAID_IS_ENABLED_MERMAID_CHART_LINKS ='true'
|
||||
|
||||
[[redirects]]
|
||||
from = "/index.html"
|
||||
to = "/edit"
|
||||
status = 301
|
||||
force = true
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
onMount(async () => {
|
||||
await goto(`${base}/edit`, {
|
||||
replaceState: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user