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

    pid1

    02/23/2023, 10:09 PM
    does anyone use RLS with Prisma?
  • g

    garyaustin

    02/23/2023, 10:22 PM
    If you are talking from the Prisma side that is more a Prisma/Postgres question than Supabase. https://github.com/prisma/prisma/issues/12735 pretty long post there discussing it. If you want to use the Supabase REST API in addition to Prisma then you would use custom headers or mint your own jwt's. I don't use Prisma though. If you have specific questions on how to do something with RLS you can follow up in #1006358244786196510 . Otherwise let's see if any Prisma users respond in off-topic.
  • p

    pid1

    02/23/2023, 10:25 PM
    Yeah, I'm reading thru that issue right now. Trying to decide if Prisma is the right choice for us. I suppose views and functions can do everything we need, but it's so tempting to just shove SQL into code
  • e

    ejkreboot

    02/24/2023, 12:31 AM
    I am trying to create some supabase snippets in VS Code. I got tired of quoting each line of longish snippets so wanted to try one of the snippet extensions. But they spit out something like this:
    Copy code
    // @prefix test
    // @description 
    /* eslint-disable */
    
    // my snippet code here...
    But that is very different from the VS code snippet format:
    Copy code
    {
      "Print to console": {
        "scope": "javascript,typescript",
        "prefix": "log",
        "body": [
          "console.log('$1');",
          "$2"
        ],
        "description": "Log output to console"
      }
    }
    Can someone elighten me as to what I am supposed to do with the snippet output from Easy Snippet and similar extensions in the format I showed above and/or what the difference is between the formats?
  • s

    stephenhandley

    02/24/2023, 8:20 PM
    I'm wondering if there are any plans to implement something akin to Firebase Hosting on Supabase. I know there are plenty of options out there like S3, Cloudflare, Firebase, Vercel. However, I'm building a platform for artists / creatives and want to make it as easy as possible for them to self-host. Building the initial implementation off of a single vendor would make that process a lot easier. Basically, if Supabase provided a way to serve the html for a bundled react app it would make it a one-stop shop. From what I can tell the file serving on supabase returns html as text so wouldn't be able to use that. Any suggestions / visibility on hosting would be much appreciated.
  • j

    JoshTheNerd

    02/25/2023, 12:12 AM
    You could make that service yourself with 1 or more digitalocean droplets and cloudflare as it's fairly simple
  • s

    stephenhandley

    02/25/2023, 1:22 AM
    Yeah its not about whether or not I could do it myself (and why I mentioned all the other options ) it's the point of it being turnkey for the end user so as to not require multiple signups on their part. Ideally it would be as simple as "signup for supabase" so there would be minimal overhead for non-technical users
  • j

    JoshTheNerd

    02/25/2023, 2:15 AM
    ah ok I understand now
  • a

    AdamJensen

    02/25/2023, 4:48 AM
    Yeah it would be cool to be able to just have one vendor for your entire tech stack 😁 (that's also FOSS)
  • g

    Gravy

    02/25/2023, 6:34 AM
    If you're willing to sacrifice FOSS, take a look at vercel - they're just a wrapper for AWS Lambda. They run your app as a serverless function
  • g

    Gravy

    02/25/2023, 6:34 AM
    All you need to do is take advantage of Lambda
  • a

    AdamJensen

    02/25/2023, 1:31 PM
    Yeah right now I host all my stuff through Vercel already haha, would be nice to have one place for everything in a webapp/api though.
  • b

    blessingmwiti

    02/25/2023, 3:49 PM
    What's important is the results...
  • g

    Gravy

    02/25/2023, 5:11 PM
    I'm not talking about hosting through vercel, I'm talking about using AWS like vercel
  • g

    Gravy

    02/25/2023, 5:12 PM
    aws isn't foss but it has everything
  • g

    Gravy

    02/25/2023, 5:13 PM
    S3, EC2, media transcoding, SES, etc
  • g

    Gravy

    02/25/2023, 5:13 PM
    at the cost of your soul though
  • g

    Gravy

    02/25/2023, 5:13 PM
    AWS Rekognition is good for content moderation
  • g

    garyaustin

    02/25/2023, 5:15 PM
    @Gravy when posting on discord on a computer/browser you should use shift-enter To generate a new line Without generating separate messages (and alerts to those monitoring) on every line. Thanks
  • g

    Gravy

    02/25/2023, 5:15 PM
    oh sorry
  • b

    blackleitus

    02/25/2023, 8:25 PM
    does anyone knows the code behind social providers? https://ui.supabase.io/components/auth
  • g

    garyaustin

    02/25/2023, 8:43 PM
    The one you linked is being deprecated. The auth components are now here: https://github.com/supabase/auth-ui Is the current auth-ui code.
  • b

    blackleitus

    02/25/2023, 8:49 PM
    I just need the ui outside of supabase. do you have the codes?
  • g

    garyaustin

    02/25/2023, 8:58 PM
    I have no idea what you are looking for if it is not in either of those two repositories on github. They should have the code for the UI they generate.
  • b

    blackleitus

    02/25/2023, 9:25 PM
    I am looking the ui auth from the above image however I want the complete code since I only see import { createClient } from '@supabase/supabase-js' import { Auth, ThemeSupa } from '@supabase/auth-ui-react' const supabase = createClient('', '') const App = () => ( <Auth supabaseClient={supabase} appearance={{ theme: ThemeSupa }} providers={['google', 'facebook', 'twitter']} /> )
  • g

    garyaustin

    02/26/2023, 1:13 AM
    Pretty wild...

    https://www.youtube.com/watch?v=qQXXI5QFUfw▾

    For you youngsters go to the 5:30 mark, if where things came from bore you....
  • r

    Razoth

    02/26/2023, 6:59 AM
    and in 2025 we will all program with a language called "JACK" Just Ask ChatGPT Kid I just copyrighted that, don't even think about it 😄 😛
  • a

    AdamJensen

    02/26/2023, 7:33 AM
    It'll be like you just give dictation to a text-to-speech and your app will be built 😄
  • c

    ceridev

    02/26/2023, 1:23 PM
    Na already came up w that, copyrighted it before u lol 😝
  • d

    Domcario

    02/27/2023, 3:28 AM
    users are asking for a feature where they can upload inspiration photos (probs videos too, but will worry about that later) for a task they have to do. i haven't worked with images at all. main concern is not eating up storage and being able to compress images and cache them (is this possible?) my app is nextjs + supabase. is there a "best" way to do this?
1...353354355...392Latest