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

    DanMossa

    04/02/2022, 8:04 PM
    Isn't that what the payg plan is?
  • l

    leviwhalen

    04/02/2022, 8:34 PM
    Anyone want to make a supabase logo on r/place??
  • b

    Ben-jam-in

    04/03/2022, 5:40 AM
    Does anyone know if there are any repos that deal with both supabase and Solana (crypto currency) Trying to figure out a way to build the front end for it.
  • k

    kleak

    04/03/2022, 6:48 AM
    There is a 25$ base fee with bunch of thing inside 😟
  • h

    hero76

    04/03/2022, 8:14 AM
    i keep getting this error when using rpc but when using sql works
  • h

    hero76

    04/03/2022, 8:14 AM
    {"hint":"No function matches the given name and argument types. You might need t o add explicit type casts.","details":null,"code":"42883","message":"function st _astext(extensions.geography) does not exist"}
  • h

    hero76

    04/03/2022, 8:16 AM
    i enabled postgis extension and btw its self hosted supabase
  • a

    ankitzm

    04/03/2022, 1:27 PM
    I am quite interested in that, what are you building ? Have worked with solana before
  • b

    Ben-jam-in

    04/03/2022, 3:37 PM
    I have a list of random codes generated and stored on supabase. I’m trying to get the site to: Have the user connect with a solana wallet. Once connected it will allow them to fill in the “random code” and submit. If the code is part of our supabase data base, then it will record the wallet and pair it with the random code in another table. Else, it denies the submission. I’m pretty sure this can be done. I’m just having a hard time figuring it out.
  • s

    sbr

    04/03/2022, 8:54 PM
    Does
    onAuthStateChange
    trigger in all open tabs when the user logs in via a magic link in a different tab? It seems like https://github.com/supabase/supabase/issues/2739 fixed this but it doesn't seem to work for me?
  • s

    sbr

    04/03/2022, 8:56 PM
    This is my code-
    Copy code
    useEffect(() => {
        supabaseClient.auth.onAuthStateChange((event, session) => {
          if (event === "SIGNED_IN") {
            supabaseClient.auth.api
              .getUser(session.access_token)
              .then(({ user, error }) => {
                if (user) {
                  setUser(user);
                }
              });
          } else if (event === "SIGNED_OUT") {
            setUser(null);
          }
        });
    }, []);
  • o

    Olyno

    04/03/2022, 9:26 PM
    Hi Please ask help in #843999948717555735 instead of this channel
  • o

    Olyno

    04/04/2022, 8:51 AM
    Hi As above, please ask in #843999948717555735 instead of this channel
  • s

    sbr

    04/04/2022, 8:52 AM
    Oh sorry, I thought #843999948717555735 was about specific technical questions and since I had a broad based one, posted in #839993398554656831. Will move it to #843999948717555735 !
  • o

    Olyno

    04/04/2022, 8:53 AM
    The help channel has been created to help people about global questions, so it's a correct place to ask. If you need a specific question, don't hesitate to move in other help channels as #869410418567831602, #869406062036529193 or any other channel 😛
  • u

    `7antra

    04/04/2022, 4:14 PM
    Hello, I've been wanting to write to you for a long time, I've been following the project for two years, and I'm even one of the few contributors (sponsor) on github (7antra); I wanted to tell you that I don't understand your subscriptions, I think they could be better thought out... For example, I have several projects, which are not consulted much and for which I could pay, but never 25$/month per project. Why not do a budget in between? Like 5$/month/project or little bit more ? ❤️ _ PS: feedbacks not working on your website :/
    o
    j
    • 3
    • 6
  • o

    Olyno

    04/04/2022, 4:24 PM
    Pricing precisions need
  • j

    Jaaneek

    04/05/2022, 12:00 PM
    Can I limit size and dimensions of images that I upload to supabase storage via RLS?
    g
    j
    p
    • 4
    • 5
  • p

    Perfectó

    04/05/2022, 1:39 PM
    Can I have
    sameSite
    attribute (while setting cookies) set to something else like
    none
    ? I'm not using
    gotrue api
  • g

    garyaustin

    04/05/2022, 2:38 PM
    limit size of images
  • c

    cdedreuille

    04/05/2022, 5:56 PM
    I guess you can get rid of this line now. 😊
  • b

    bill92

    04/05/2022, 6:13 PM
    Has anyone used RTK query (https://redux-toolkit.js.org/rtk-query/overview) with supabase that they could share their experience?
  • j

    jonny

    04/05/2022, 7:04 PM
    Nice! 🔥
  • b

    Bicijay

    04/05/2022, 7:23 PM
    looked for this answer last week but i ended up going with react-query and its working great, dunno if it fits you
  • j

    Jaaneek

    04/05/2022, 8:32 PM
    When uploading files to storage the data I get in return isn't type safe.
    Copy code
    ts
    const { data, error } = await supabase.storage
              .from(storageBucketsNames.portfolioFiles)
              .upload(`something/avatar`, file, { upsert: true });
              if (error) return { error };
             typeof  data // { Key: string; } | null
    Why is data nullable?
  • j

    Jaaneek

    04/05/2022, 8:32 PM
    If there is no error the data can still be null?
  • b

    barry

    04/05/2022, 9:35 PM
    It returns error for you.
  • h

    haz

    04/05/2022, 9:38 PM
    I was one of the Alpha users of Supabase I wanted to ask aren't we given base tier usage for free for 2 years, because when creating a new project it only says free tier.
    j
    • 2
    • 5
  • j

    Jaaneek

    04/05/2022, 9:49 PM
    Yeah but why doesnt it infer data to be type:
    Copy code
    ts
    {Key:string}
    instead it infers it to be:
    Copy code
    ts
    { Key: string } | null
    Me and my friend researched this further and came to conclusion that almost all of the storage methods are wrongly typed, they are being cast wrongly. We think its due to typescript version 4.07 which is bugged, we will make pull request and ask you to update typescript version aswell. This is the bug we are talking about : https://github.com/microsoft/TypeScript/issues/48037 This is example of wrongly typed method in the storage library:
    Copy code
    ts
    getPublicUrl(
        path: string
      ): {
        data: { publicURL: string } | null
        error: Error | null
        publicURL: string | null
      } {
        try {
          const _path = this._getFinalPath(path)
          const publicURL = `${this.url}/object/public/${_path}`
          const data = { publicURL }
          return { data, error: null, publicURL }
        } catch (error) {
          return { data: null, error, publicURL: null }
        }
      }
    Is typed as:
    Copy code
    ts
    {
        data: { publicURL: string } | null
        error: Error | null
        publicURL: string | null
      }
    But should be:
    Copy code
    ts
    {
      data: null;
      error: Error;
      publicURL: null;
    }
    | {
    data: { publicURL: string };
    error: null;
    publicURL: string;
    };
    This is a huge inconvenience for users of this library and requires people that want to use typescript correctly to write a lot of boilerplate.
    j
    • 2
    • 4
  • b

    barry

    04/05/2022, 9:50 PM
    To allow for there to be no error?
1...209210211...392Latest