Skip to content

Conversation

@rileychh
Copy link
Member

This PR migrates the project from manual route configuration to unplugin-vue-router for automatic file-based routing.

Changes

  • Replace manual src/routes.ts with file-based routing from src/pages/ directory
  • Add unplugin-vue-router plugin and configure VueRouter plugin in vite config
  • Implement SSG route generation for language-specific pages (en, zh)
  • Add typed route definitions with auto-generated typed-router.d.ts
  • Create initial page structure with language parameter routing (/[lang]/)

Technical Details

  • Routes are now automatically generated from the src/pages/ directory structure
  • The includedRoutes function in ssgOptions expands dynamic :lang routes into concrete paths for SSG build
  • Supports English (en) and Traditional Chinese (zh) languages

@rileychh rileychh marked this pull request as draft November 29, 2025 13:34
@rileychh rileychh marked this pull request as ready for review December 1, 2025 16:55
@mirumodapon mirumodapon merged commit 60f604b into main Dec 3, 2025
1 check failed
@mirumodapon mirumodapon deleted the migrate-to-unplugin-vue-router branch December 3, 2025 11:35
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.

3 participants