Commit 6000738
committed
feat: enhance proxy function with session cookie validation
- Updated the proxy function to accept a NextRequest parameter and check for session cookies.
- Implemented redirection to the sign-in page if no valid session cookie is found.
- Adjusted the matcher configuration to apply the proxy only to the '/dashboard' route.1 parent 6eae7d8 commit 6000738
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | | - | |
| 14 | + | |
9 | 15 | | |
0 commit comments