fix: load docs demo runtime index directly

This commit is contained in:
3252a8
2026-06-04 11:02:06 +03:00
parent 2ad6b14513
commit 2b4a8d6953
2 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
---
import { emailPreviews } from '../lib/emailPreviews.mjs';
const defaultDemoSrc = '/demo/runtime/app/?path=/home&mock=tariffs';
const defaultDemoSrc = '/demo/runtime/app/index.html?path=/home&mock=tariffs';
const docsHref = '/getting-started/demo/';
---
@@ -529,7 +529,7 @@ const docsHref = '/getting-started/demo/';
title={`Email preview: ${preview.title}`}
srcdoc={preview.html}
loading="lazy"
sandbox=""
sandbox="allow-scripts"
></iframe>
</div>
</div>