You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c928b9c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): keep the API route matcher out of the client bundle
- Move the radix3 API router and matchAPIRoute into a server-only api-routes.ts.
- routes.ts keeps only pageRoutes, which the client needs.
- Match routes that only export an OPTIONS handler.
- Add a build test that checks the router is not in client output.
Fixes#2361
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the API route matcher out of the client bundle. It is only used on the server, but the client loaded it with the page routes, which added about 2.5 KB of unused code. Routes that only export an `OPTIONS` handler are now matched as API routes.
0 commit comments