Next.js Discord

Discord Forum

Can't resolve "dns''? Client Side Issue How to Solve?

Answered
Sloth bear posted this in #help-forum
Open in Discord
Sloth bearOP
Want to connect to my postgres database but I am in a client side component and it throws an error like this. How to query my database to update my user's information without this issue being thrown? Need to know the right approach
Answered by Sloth bear
solved it :thank_you: , I just make a pages/api route and handle the api call from the client component
View full answer

1 Reply

Sloth bearOP
solved it :thank_you: , I just make a pages/api route and handle the api call from the client component
Answer