Not connecting to my database? Timeout error
First time using supabase.
I dont understand why but i cant connect to my db. I don't think its the code since the command
yields me
No resrtcitions are applied to my db settings
I have enforce ssl also turned off.
But just incase my code is:
which is placed in a file called db.ts which is what is used to make the connection.
im almost 90% sure its my database settings that are messing me up but idk what.
3 Replies
https://supabase.com/docs/guides/database/connecting-to-postgres#direct-connection
Try with the session pooler connection string. you'll find it in the connect tab

Thank you this worked but also i noticed i had the wrong env name for uri but yeah this fixed it woo
how do i mark this solved
I think you can edit the tags