Commit 1791df8
committed
refactor: migrate routes to v2 flat routes convention
- Rename all route files from folder-based to dot-based naming
- Rename index.tsx to _index.tsx for index routes
- Update relative imports to match new file structure
- Update test import from ~/routes to ~/routes/_index
- Add serverModuleFormat: 'cjs' to fix @heroicons/react ESM issue
Route examples:
- routes/index.tsx → routes/_index.tsx
- routes/dashboard/course.tsx → routes/dashboard.course.tsx
- routes/dashboard/course/$lessonId.tsx → routes/dashboard.course.$lessonId.tsx1 parent 3a8ca51 commit 1791df8
22 files changed
Lines changed: 23 additions & 12 deletions
File tree
- app
- components/sections/__tests__
- routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments