Skip to content

Commit 2c32a3d

Browse files
te6-inclaude
andcommitted
fix(docs): update stackflow-spa preview URL to match new Cloudflare Pages project name
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6db2515 commit 2c32a3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/components/stackflow-iframe-preview.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,14 @@ function getStackflowSpaUrl(path: string): string {
211211
return "http://localhost:5173";
212212
}
213213

214-
// Branch previews
214+
// Branch previews only — deployment-hash based preview URLs (e.g. 340c0934.seed-design.pages.dev)
215+
// cannot be mapped because Cloudflare generates independent deployment hashes per project.
215216
// Docs URL: https://<branch>.seed-design.pages.dev
216-
// QA URL: https://<branch>.seed-design-qa.pages.dev
217+
// QA URL: https://<branch>.seed-design-stackflow-spa.pages.dev
217218
if (window.location.hostname.endsWith(".seed-design.pages.dev")) {
218219
const branch = window.location.hostname.split(".")[0];
219220

220-
return `https://${branch}.seed-design-qa.pages.dev`;
221+
return `https://${branch}.seed-design-stackflow-spa.pages.dev`;
221222
}
222223

223224
// Production

0 commit comments

Comments
 (0)