#How to connect Supabase to Railway

35 messages · Page 1 of 1 (latest)

drowsy crag
#

There's no option of supabase variable in my project, only postgres

fossil rootBOT
#

No specific service linked.

fickle nest
#

Are you hosting Supabase or are you connecting an external instance?

drowsy crag
#

connecting external instance

#

i already have a project in supabase but it is still empty

#

is this correct

fickle nest
#

You need to redeploy your service to use the variables.

drowsy crag
#

but where do i get the Database_URL tho

#

it saids pooler something

fickle nest
fickle nest
drowsy crag
#

so it is the same with Supabase_url variable?

fickle nest
#

I don't know what you put.
If it's the same, then it's the same.
The URL should start with postgresql://.

#

It should be called "Direct connection string" in Supabase dashboard.

drowsy crag
#

The string you shared is a Direct Connection URL. While it looks correct, it will likely cause your app on Railway to crash with a Network is unreachable or ENETUNREACH error.

#

it says this

fickle nest
#

What said that...

drowsy crag
#

it says that railway only support Ipv4 connection but supabase uses IPv6

#

is it true tho

#

does railway now supports Ipv6? since i researched again and it said yes

south falcon
#

That costs extra money, can't you just enable outbound IPv6 on the railway service?

compact tapir
#

outbound ipv6 is a feature flag option

drowsy crag
#

or change the pooler in supabase

fickle nest
#

Oh cool. Didn’t know it’s now a feature flag.

drowsy crag
#

owh damn

#

damn tysm!

#

lastly do i need to remove the syntax ${{}} in railway

fickle nest
drowsy crag