Next.js Discord

Discord Forum

Local fetch redirecting

Unanswered
West African Lion posted this in #help-forum
Open in Discord
Avatar
West African LionOP
How do I solve the issue of redirects when I connect to my database locally?
Image

6 Replies

Avatar
@West African Lion How do I solve the issue of redirects when I connect to my database locally?
Avatar
why does your DB redirect you? And why are you calling your DB from your client? 🤔
Avatar
@B33fb0n3 why does your DB redirect you? And why are you calling your DB from your client? 🤔
Avatar
West African LionOP
I will fix the data fetching; this is an app I am optimizing and fixing old bad practices while I was still learning. For some unknown reason to me it started rediecting me when I connect locally but in production it works well.
Avatar
@West African Lion I will fix the data fetching; this is an app I am optimizing and fixing old bad practices while I was still learning. For some unknown reason to me it started rediecting me when I connect locally but in production it works well.
Avatar
That sounds pretty unexpected. Check the initiator inside your network tab and the code of it. Maybe you can find the line that causes the redirect
Avatar
@West African Lionsolved?
Avatar
that's not the solution. none of the messages in this thread presents any solutions to the question
pls only mark solutions. suggested steps to debug are not solutions