https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • u

    user

    12/20/2021, 2:40 PM
    u mean creating stuff using @supabase/supabase-js ?
  • u

    user

    12/20/2021, 2:40 PM
    yes
  • u

    user

    12/20/2021, 2:40 PM
    or are you using an ORM like Prisma
  • u

    user

    12/20/2021, 2:40 PM
    sdk
  • u

    user

    12/20/2021, 2:41 PM
    ok then closer to you since the connection is made from the browser
  • u

    user

    12/20/2021, 2:42 PM
    i was thinking of moving the sdk logic into api routes
  • u

    user

    12/20/2021, 2:42 PM
    provided by next.js
  • u

    user

    12/20/2021, 2:42 PM
    they will be executed on server right?
  • u

    user

    12/20/2021, 2:44 PM
    yes you can use Supabase sdk in api routes
  • u

    user

    12/20/2021, 2:44 PM
    then it will run on the server
  • u

    user

    12/20/2021, 2:44 PM
    and then you should deploy supabase closest to us-east1 (closest to your server)
  • u

    user

    12/20/2021, 2:45 PM
    why would we use supabase in the browser?
  • u

    user

    12/20/2021, 2:45 PM
    isn't it dangerous
  • u

    user

    12/20/2021, 2:48 PM
    you have to set up rules in Supabase, like only allowing requests from a certain IP, PostgreSQL row-level security (RLS) etc.
  • u

    user

    12/20/2021, 2:48 PM
    Firebase also has a client sdk
  • u

    user

    12/20/2021, 2:49 PM
    it's definitely more complexity
  • u

    user

    12/20/2021, 2:49 PM
    so server side is easier right
  • u

    user

    12/20/2021, 2:49 PM
    but when accessing server-side you should also only allow requests from a certain IP anyway
  • u

    user

    12/20/2021, 2:49 PM
    in production
  • u

    user

    12/20/2021, 2:50 PM
    only allow requests from your server's ip
  • u

    user

    12/20/2021, 2:50 PM
    it's preferable
  • u

    user

    12/20/2021, 2:51 PM
    got it
  • c

    caryyon

    12/20/2021, 5:08 PM
    can't seem to login with my github... i click the button, it loads and then just doesn't do anything?
  • c

    caryyon

    12/20/2021, 5:09 PM
    anyone else having that issue?
  • f

    fbbeh

    12/20/2021, 9:55 PM
    Hey all! I'm following this tutorial to build a Cloudflare Worker that connects up to Postgres and I need to make a table from my Supabase instance accessible to the internet - is that possible? https://developers.cloudflare.com/workers/tutorials/postgres
  • f

    fbbeh

    12/20/2021, 10:06 PM
    Looks like it's not possible to do so like the tutorial shows according this: https://github.com/supabase/supabase/tree/master/examples/with-cloudflare-workers
  • k

    ktosiek

    12/20/2021, 10:45 PM
    Hi! Is there some online UI for resetting passwords? I'm trying to use auth with Streamlit, which doesn't give me an easy access to the URL fragment
  • f

    fbbeh

    12/20/2021, 11:30 PM
    All solved thanks to this thread! https://github.com/supabase/supabase-js/issues/154
  • j

    jonny

    12/20/2021, 11:40 PM
    still having issues?
  • c

    caryyon

    12/20/2021, 11:42 PM
    Let me try now that I’m home
1...166167168...392Latest