mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 00:29:39 +02:00
chore: Disable mermaid in SSR
This commit is contained in:
@@ -267,5 +267,7 @@ const main = async () => {
|
||||
document.getElementById('arch-example').innerHTML = svg;
|
||||
};
|
||||
|
||||
setTimeout(main, 100)
|
||||
if (!import.meta.env.SSR) {
|
||||
setTimeout(main, 100);
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user