fix: stabilize docs demo runtime routing

This commit is contained in:
3252a8
2026-05-31 00:25:23 +03:00
parent cf3af17243
commit 19f7daff6c
5 changed files with 21 additions and 27 deletions
+2 -1
View File
@@ -191,6 +191,7 @@ await runNpm(["--prefix", frontendRoot, "run", "build:docs-demo"]);
await rm(runtimeDir, { recursive: true, force: true });
await mkdir(runtimeDir, { recursive: true });
await mkdir(path.join(runtimeDir, "app"), { recursive: true });
const html = await appHtml();
@@ -204,7 +205,7 @@ await Promise.all([
path.join(runtimeDir, "default-brand"),
),
copyDirectory(themesDir, path.join(runtimeDir, "themes"), copyThemeFile),
writeFile(path.join(runtimeDir, "app.html"), html, "utf8"),
writeFile(path.join(runtimeDir, "app", "index.html"), html, "utf8"),
installGuidesConfigPayload().then((payload) =>
writeFile(
path.join(runtimeDir, "subscription-guides-config.json"),