Files
upage/react-router.config.ts
Takagi 8f31f82365 chore: upgrade from remix to react router v7 (#20)
* chore: upgrade from remix to react router v7

* chore: upgrade from remix to react router v7

* Refactor API routes to flat structure and simplify handlers

Migrated API route files from dynamic Remix v2 file system routing to a flat, explicit structure compatible with React Router v7. Removed all dynamic route handler files and replaced them with direct route modules under organized folders (e.g., api/chat, api/1panel, etc.). Updated route configuration in routes.ts to use the new structure and prefix helpers. Refactored all API handler modules to include authentication checks directly and removed indirection via action/loader wrappers. Updated imports and fixed references throughout the codebase to match the new file locations. Also updated Netlify deploy action endpoint and improved error handling in 1panel store.

* Refactor route handlers and update component props

Refactored several route handler functions to remove unnecessary exports and align with new conventions. Updated Chat component to receive loaderData via props and adjusted usage in chat route. Removed unused 'data' utility from routes. Minor UI component cleanup and fixed transition utility in uno.config.ts.

* adjust server abort delay

* Remove AuthErrorToast and update react-router packages

Deleted the AuthErrorToast component and its lazy loader from the codebase. Upgraded all @react-router/* and react-router dependencies from version 7.10.1 to 7.11.0 in package.json and pnpm-lock.yaml.

* Refactor route loader data typing and route IDs

Replaces manual type definitions for route loader data with types from generated Route types, improving type safety and maintainability. Updates useRouteLoaderData calls and adjusts route registration to use explicit route IDs, aligning with new type usage.

* Clean up Remix naming remnants after React Router v7 migration

* feat: add claude skills
2026-04-22 12:45:27 +08:00

5 lines
106 B
TypeScript

import type { Config } from '@react-router/dev/config';
export default {
ssr: true,
} satisfies Config;