website refactor

This commit is contained in:
2026-01-17 22:55:03 +01:00
parent 64d9e7fd16
commit 69d4cce7f1
64 changed files with 1146 additions and 1014 deletions

View File

@@ -153,6 +153,9 @@ describe('Middleware - Route Protection', () => {
describe('Special redirects', () => {
it('should handle /sponsor root redirect', async () => {
mockRequest.nextUrl.pathname = '/sponsor';
mockGetSessionFromRequest.mockResolvedValue({
user: { userId: '123', role: 'sponsor' },
});
const response = await middleware(mockRequest);