Connect supabase-js to supabase template

chachewHOBBY

6 days ago

I am running the 'Supabase Six's Projects' template and i need to now connect to it for user authentication from the supabase-js javascript library. I cant seem to find the correct url to point supabase-js to in the createClient method. Ive tried the railway internal 'postgrest-production-<my-app>.up.railway.app' url for internal connections and ive also tried externally adding a cloudflare dns entry point back tot he railway app. None have worked.

What im looking for is the database url, both internally and externally, so i can connect the supabase-js client on the frontend to let user login in/out

Ive been pointing to the postgrest service, but is that correct or should it be the kong service or something else?

Solved$10 Bounty

2 Replies

chachewHOBBY

6 days ago

Found it!, Its just the Kong internal/external network address


chachew

Found it!, Its just the Kong internal/external network address

lofimitHOBBY

6 days ago

Great! Just reminding you to mark this thread as solved.


Status changed to Solved brody 6 days ago