Target branch
main
Classification
Frontend regression gap / production console error
Problem
The marketing homepage renders demo links as relative /documents/new?demo=1 URLs. On writehumanly.net, Next.js attempts an RSC prefetch on the marketing origin, which redirects to app.writehumanly.net and logs Failed to fetch RSC payload before falling back to full browser navigation.
Expected behavior
Production homepage demo links should point directly at the product app origin so they navigate without a failed RSC prefetch. Local development should retain relative links.
Reproduction
- Open
https://writehumanly.net/.
- Inspect browser console while the page prefetches the Demo links.
- Observe
Failed to fetch RSC payload for https://writehumanly.net/documents/new?demo=1.
Suspected failure path
packages/frontend-user/src/app/page.tsx defines fastDemoHref as a relative URL instead of using the existing productAppHref origin helper.
Scope
- Route homepage demo links through
productAppHref.
- Add a focused source-level regression test if an existing page test covers link targets.
Acceptance criteria
- Production demo links resolve directly to
https://app.writehumanly.net/documents/new?demo=1.
- Local development continues to use a relative product URL.
- Frontend-user typecheck passes.
Out of scope
- Changes to the demo workflow itself.
- Changes to authenticated document navigation.
References
Found during deployed regression verification after #1011.
Target branch
mainClassification
Frontend regression gap / production console error
Problem
The marketing homepage renders demo links as relative
/documents/new?demo=1URLs. Onwritehumanly.net, Next.js attempts an RSC prefetch on the marketing origin, which redirects toapp.writehumanly.netand logsFailed to fetch RSC payloadbefore falling back to full browser navigation.Expected behavior
Production homepage demo links should point directly at the product app origin so they navigate without a failed RSC prefetch. Local development should retain relative links.
Reproduction
https://writehumanly.net/.Failed to fetch RSC payload for https://writehumanly.net/documents/new?demo=1.Suspected failure path
packages/frontend-user/src/app/page.tsxdefinesfastDemoHrefas a relative URL instead of using the existingproductAppHreforigin helper.Scope
productAppHref.Acceptance criteria
https://app.writehumanly.net/documents/new?demo=1.Out of scope
References
Found during deployed regression verification after #1011.