right now, on dev everything works fine. if i log in, i get a session and the getSessionData function returns a session. after pressing the login button i get redirected to /home. but on production, even after pressing login i remain at the /login page. when i check the network tab, it directs to /home and back to /login.
in my /home page, i check for session, and if i dont have a session then i redirect to the /login page. const session = await getSessionData() console.log("Dashboard Layout Session:", session); // Log the session if (!session) { console.log("Session is null, redirecting to /login"); // Log before redirect redirect('/login') }