Next.js Native Router Migration
Moved Dcard's sites off a homemade router and onto the router built into Next.js.

- 2023
Background
The system was built before Next.js shipped its own router, so it ran on a homemade one. Once the official router came out, the team wanted to move away from the homemade router to reduce maintenance costs.
What I did
- Clarified what the homemade router did, so every function could be converted.
- Wrote migration documents so other participants could migrate features by following them.
Problems along the way
The homemade router had special redirect handling
During the migration both routers were in use, and every site shared the same version of the homemade router. When handling its special redirects, I had to make sure other sites were not affected and that the routes already moved over still worked.

