MigrationMigration
Edit this page

Migration

Migrating from Demo Template to Bun-Native Docs

Move an older react-bun-ssr demo-style setup to the current docs-first Bun-native project structure, route layout, and framework defaults.

migrationtemplateupgrade

Older versions of this project mixed framework experiments, demo app code, and docs concerns together. The current direction is stricter.

Migration goals

  • keep the docs site as the primary product surface
  • move authored docs into app/routes/docs/**/*.md
  • keep generated assets under .rbssr/ and dist/
  • use Bun-first runtime helpers consistently

Typical migration steps

  1. Move ad-hoc pages into app/routes.
  2. Replace generic anchors with Link for internal navigation.
  3. Move route-specific styling into CSS Modules.
  4. Replace custom markdown plumbing with first-class .md routes.
  5. Regenerate API docs and search artifacts.

Validation checklist

bun run test
bun run docs:check
bun run docs:build

Next step

Return to Overview if you want to follow the new documentation flow from the beginning.