This goes away by manually navigating back to the root route using the URL bar (i.e. entering https://100freelancers.vercel.app/, which would then recognize that the user is logged in and redirect to the /home route).
I suspect the issue lies in the /client/app/home/page.jsx file, but am not entirely sure what it might be.
Expected Behavior
Upon clicking the "sign in" button and authorizing Discord, users should be successfully redirected to the
/home
page.Current Behavior
Instead, after authorizing Discord, users are met with this:
(The link in the console goes here)
This goes away by manually navigating back to the root route using the URL bar (i.e. entering
https://100freelancers.vercel.app/
, which would then recognize that the user is logged in and redirect to the/home
route).I suspect the issue lies in the
/client/app/home/page.jsx
file, but am not entirely sure what it might be.Steps to Reproduce
Context (Environment)
This bug only appears to be happening in production, not in local environments.