1 Commits

Author SHA1 Message Date
2209b3a4a1 fix(marketing): serve the real homepage at mail.scribase.com/ for anonymous visitors
apps/web/src/app/page.tsx unconditionally redirect()ed every anonymous
visitor to /login (a bare auth form, no value-prop copy). The real,
already-written marketing homepage -- hero, "Looking for a Resend
alternative?" positioning, feature grid, live pricing, "Part of
Scribase" -- lived in apps/marketing (a separate Next.js app, port
3001) but was never wired into deploy/compose.scribase-mail.yml or
Caddy, so it never actually served production traffic.

Ports that content into apps/web (the surface that IS deployed) under
src/components/marketing/*, since apps/web already depends on the same
shared @usesend/ui/@usesend/lib packages the content needs -- smaller
and lower-risk than standing up a second deployed service. page.tsx now
renders MarketingHome for anonymous visitors and keeps the exact same
redirect behavior (dashboard/waitlist) for authenticated ones. Also
ports the /privacy and /terms pages the footer links to (previously
only live at apps/marketing's unused build), so no new dead links are
introduced.

Updates the ai-content comment (added earlier today) to drop the now-
stale "never wired" note -- the llms.txt/index.md AI mirror and the
real human-visible homepage now describe the same page.

Verified for real: tsc --noEmit clean; real `next build` succeeds, all
new routes (/, /privacy, /terms) present in the manifest; ran a real
throwaway Postgres 16 + Redis 7 locally, applied all 8 prisma
migrations, started the real `next start` server and curled it --
`/` returns 200 with the full real marketing HTML (hero, Resend-
alternative section, Free $0/Pro $20/Scale $90 pricing matching
PRICING_PLANS), not a redirect; /login, /privacy, /terms all 200; a
bogus path still 404s; all 5 new public image assets 200; llms.txt/
llms-full.txt/index.md content confirmed to match what a human now
sees. 665/665 existing unit tests pass unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-07 22:25:50 +03:00