Commit 23e15f0
Deepak Pandey
Fix ALL remaining Supabase build errors - comprehensive scan complete (Part 3)
- Fix app/api/leaderboard/user/[userId]/route-unified.ts: Convert module-level Supabase client to lazy initialization
- Fix app/api/leaderboard/stats/route-unified.ts: Convert module-level Supabase client to lazy initialization
- Build now completes successfully with all 142 pages generated
- ALL Supabase build errors are now completely resolved across the entire codebase
- Comprehensive scan found and fixed ALL remaining module-level Supabase client initializations including unified routes1 parent c22d9cb commit 23e15f0
File tree
2 files changed
+14
-8
lines changed- app/api/leaderboard
- stats
- user/[userId]
2 files changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments