middleware fix wip
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
'use client';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { motion, useReducedMotion, AnimatePresence } from 'framer-motion';
|
||||
|
||||
@@ -3,6 +3,7 @@ import { redirect } from 'next/navigation';
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export default function SponsorPage() {
|
||||
// Server-side redirect to sponsor dashboard
|
||||
// Redirect to dashboard - this will be handled by middleware for auth
|
||||
// Using permanent redirect to avoid cookie loss
|
||||
redirect('/sponsor/dashboard');
|
||||
}
|
||||
Reference in New Issue
Block a user