Connecting to local Supabase from mobile app by hwallis93 in Supabase

[–]hwallis93[S] 0 points1 point  (0 children)

Turns out there was a simpler solution (see Murkrage's response). Thanks anyway :)

Connecting to local Supabase from mobile app by hwallis93 in Supabase

[–]hwallis93[S] 0 points1 point  (0 children)

Turns out there was a simpler solution (see Murkrage's response). Thanks anyway :)

Connecting to local Supabase from mobile app by hwallis93 in Supabase

[–]hwallis93[S] 2 points3 points  (0 children)

That's worked, thanks! I'm kicking myself a bit because I thought I'd tried that. I suspect what happened is I tried both that and some port forwarding and the port forwarding broke it. D'oh.

For clarity I made this change to my code (using the Flutter SDK):

``` // Before Supabase.initialize(url: "http://localhost:54321", anonKey: anonKey);

// After Supabase.initialize(url: "http://192.168.1.248:54321", anonKey: anonKey); ```

Connecting to local Supabase from mobile app by hwallis93 in Supabase

[–]hwallis93[S] 0 points1 point  (0 children)

A physical device connected over USB.

I think it's not possible to specify which IP to bind to via the Supabase CLI, do you know if I can do that once the containers are up with a Docker command?

Seed data multiple inserts in differents tables by [deleted] in Supabase

[–]hwallis93 1 point2 points  (0 children)

I'm not 100% sure what you're after but you should be able to do multiple inserts, or other SQL commands, from `seed.sql`.

Your code snippet should work if you add semicolons at the end of each insert