Use netlify to redirect users

This commit is contained in:
Sidharth Vinod
2025-02-25 12:08:54 +05:30
parent fa0498f75d
commit fb5894e093
2 changed files with 7 additions and 12 deletions

View File

@@ -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

View File

@@ -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>