Skip to content

Comments

docs: enable multi-entry SSR for SEO#65

Merged
uhyo merged 3 commits intomasterfrom
docs/multi-entry-ssr
Feb 22, 2026
Merged

docs: enable multi-entry SSR for SEO#65
uhyo merged 3 commits intomasterfrom
docs/multi-entry-ssr

Conversation

@uhyo
Copy link
Owner

@uhyo uhyo commented Feb 22, 2026

Summary

  • Switch the docs site from single-entry to multi-entry mode with SSR enabled, generating 14 separate HTML files (one per route) with pre-rendered content for SEO
  • Add entries.tsx that automatically derives entry paths from the route tree — adding a new route to App.tsx automatically generates a new HTML entry
  • Add urlpattern-polyfill dependency since pnpm uses Node 22 which lacks the global URLPattern API needed by @funstack/router during SSR

Test plan

  • pnpm build in packages/docs/ succeeds and generates 14 HTML files
  • Generated HTML contains rendered page content (not just an empty shell)
  • Preview server serves pages correctly via direct URL navigation
  • TypeScript check passes (tsc --noEmit)

🤖 Generated with Claude Code

uhyo and others added 3 commits February 22, 2026 10:01
Switch the docs site from single-entry mode (one index.html with
client-side routing) to multi-entry mode with SSR. Each route now
generates a separate HTML file with pre-rendered content, improving
SEO since crawlers see real page content instead of an empty shell.

- Export routes array and add ssrPath prop to App component
- Add entries.tsx that derives entry definitions from the route tree
- Switch vite.config.ts to use entries + ssr: true
- Add urlpattern-polyfill for Node.js <23 compatibility (pnpm uses
  Node 22 which lacks global URLPattern needed by @funstack/router)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@uhyo uhyo merged commit ccb0a0b into master Feb 22, 2026
1 check passed
@uhyo uhyo deleted the docs/multi-entry-ssr branch February 22, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant