magicseth
10/14/2022, 1:27 AMuser8923
10/14/2022, 4:20 AMredirectTo<Auth supabaseClient={ supabase } redirectTo={ "http://localhost:3000" } appearance={ { theme: ThemeSupa } } />redirectTohttp://localhost:3000Shelby
10/14/2022, 6:12 AMSolemensis
10/14/2022, 8:21 AMDil
10/14/2022, 11:58 AMven
10/14/2022, 12:08 PMconst {fields, files} = response;
    const avatar = files.avatar;
    // creates a valid name by removing spaces
    const fileName = encodeURIComponent(
        avatar.originalFilename.replace(/\s/g, "-")
    );
    // renames the file in the directory
    fs.renameSync(avatar.filepath, fileName);    
    console.log(avatar)
    const avatarData = fs.readFileSync(fileName)
    const {data, error} = await client.storage
        .from("site")
        .upload("public/" + Date.now() + "-" + fileName, avatarData, {
            cacheControl: "3600",
            upsert: false,
        });davitykale
10/14/2022, 3:02 PMenyo
10/14/2022, 3:12 PMsupabase-cliCould not update presence timed outthasmo
10/14/2022, 3:48 PMkermitbaby
10/14/2022, 4:38 PMVik
10/14/2022, 5:02 PMbegin
  insert into public.profiles(id, username, join_date, private)
  values(new.id, SOMETHING, now(), false);
  return new;
end;Arne
10/14/2022, 6:01 PMthasmo
10/14/2022, 9:06 PMjs
console.log(
  await supabase
    .from('projects')
    .select('*')
);json
{ error: null, data: [], count: null, status: 200, statusText: 'OK' }Deed
10/14/2022, 9:30 PMexport async function middleware(request: NextRequest) {
  const {data} = await supabase.auth.getSession()
  if (data) {
    return NextResponse.redirect(new URL("/", request.url));
  } else {
    return NextResponse.redirect(new URL("/unauthorized", request.url));
  }
}towels42
10/14/2022, 10:50 PMcolumn
--------------
{
  "foo.domain.com": {...},
  "bar.domain.com": {...}
}client.from("table").select("column->foo.domain.com")client.from("table").select("column->'foo.domain.com'"){foo: null}PGRST100, details: unexpected "'" expecting "-"michel
10/14/2022, 10:51 PMcryptosi
10/14/2022, 11:37 PMjson
{ name: 'milk', categories: [ { name: 'food' }, { name: 'fridge' } ] }user8923
10/15/2022, 12:03 AMBomzelis
10/15/2022, 12:06 AMDanM
10/15/2022, 12:47 AMmattposgate
10/15/2022, 6:07 AMThe Little Cousin
10/15/2022, 7:22 AMconst isSignedIn = () => supabase.auth.session()? supabase.auth.session() : false;Uncaught TypeError: supabase.auth.session is not a functionitisnajim
10/15/2022, 8:30 AM[POP] 2022/10/15 08:14:28 info - 0.0423 seconds
time="2022-10-15T08:14:28Z" level=fatal msg="running db migrations: Migrator: problem creating schema migrations: CREATE TABLE \"schema_migrations\" (\n\"version\" VARCHAR (14) NOT NULL\n);\nCREATE UNIQUE INDEX \"schema_migrations_version_idx\" ON \"schema_migrations\" (version);: ERROR: no schema has been selected to create in (SQLSTATE 3F000)"Pragy
10/15/2022, 8:02 AMViewInvokerjbergius
10/15/2022, 8:19 AMconst { data, error } = await supabaseServerClient(ctx)
      .from('vendor_connections')
      .select('*');GaryLake
10/15/2022, 9:22 AMwilkijg
10/15/2022, 2:06 PMjpp244
10/15/2022, 3:54 PMrevilo
10/15/2022, 4:14 PMtalpiven
10/15/2022, 4:21 PM