Chen
03/10/2023, 2:18 AMheygwangjin
03/10/2023, 4:13 AMBtc-TenW
03/10/2023, 4:27 AMelliott
03/10/2023, 4:55 AMJimbread
03/10/2023, 5:08 AMZenon
03/10/2023, 6:17 AMKrysalist
03/10/2023, 8:48 AM$ pnpm supabase start
Applying migration 20230127002643_locations.sql...
Seeding data supabase/seed.sql...
Error: Error response from daemon: unable to find user kong: no matching entries in passwd file
Try rerunning the command with --debug to troubleshoot the error.
How I can fix this ?chrtravels
03/10/2023, 8:56 AM<Auth redirectTo={'http://localhost:3000'} supabaseClient={supabase} appearance={{ theme: ThemeSupa }} />
It just goes to a blank page. The only thing that works is to redirect to another component. As in the tutorial, they intend you do redirect to the account edit page but who really wants to do this in practice? I just want to redirect back to the home page:
{!session ? (
<Auth redirectTo={'http://localhost:3000'} supabaseClient={supabase} appearance={{ theme: ThemeSupa }} />
) : (
<Account />
)}
Any thoughts? I was going to go the route of building my own login/logout/forgot password but that seems like so much extra work to get right, when I would rather focus on the app build and come back to this later if I want a more custom solution.elliott
03/10/2023, 9:09 AMpaulgo
03/10/2023, 9:24 AMsamuel83
03/10/2023, 9:31 AMH3
03/10/2023, 9:39 AMkillerthief
03/10/2023, 10:04 AMyuqi
03/10/2023, 10:51 AMMatthew ๐ฆ๐ซ
03/10/2023, 11:11 AMAD DAB
03/10/2023, 11:50 AMrem
03/10/2023, 12:05 PMFabrizio
03/10/2023, 1:54 PMEryou Hao
03/10/2023, 2:15 PMsql
SELECT id, title, created_at AS note_date FROM notes ORDER BY note_date DESC;
I want to alias the note_tag field in response:
javascript
const result = await supabaseServerClient
.from('note')
.select(`
*,
note_tag as tags (
id,
title
)
`, { count: 'exact' })
but the note_tag as tags
not workAissam
03/10/2023, 2:26 PMfunkyj
03/10/2023, 3:30 PMWee
03/10/2023, 3:50 PMpid1
03/10/2023, 3:55 PMtype Test = ReturnType<supabaseClient.from('a_table').select('*, a_foreign_row:a_foreign_table!a_foreign_row_id (*)')>;
I've achieved what I want with:
import { GetResult } from 'https://esm.sh/v111/@supabase/postgrest-js@1.4.1/dist/module/select-query-parser';
type Test = GetResult<
Database['public'],
Database['public']['Tables']['a_table']['Row'],
'*, a_foreign_row:a_foreign_table!a_foreign_row_id (*)'
>;
But getting it from our supabase client objects would be nice ๐elliott
03/10/2023, 3:57 PM{
title: 'My Title',
completed: true,
}
and I want it to look like this:
{
title: {
value: 'My Title',
type: 'text',
},
completed: {
value: true,
type: 'checkbox',
},
}
Basically, I want to take Supabase's response and map it to represent a form, with additional fields that describe how to build the form on the client...and hopefully still generate types.
My fallback plan is to implement the mapping client-side. Not a huge deal, but I'm wondering if this sort of pattern, transforming and extending the data collected from the DB, is supported, and what Supabase calls it.Kolby
03/10/2023, 4:19 PMDaJacy
03/10/2023, 4:28 PMturner
03/10/2023, 4:32 PMfailed to update pg.tables with the given ID: must be owner of event trigger pgsodium_trg_mask_update
I do not know why this is. The table I want to update is in schema admin
and is named marketplaces
. I use pgsodium to protect some tables, but not the one admin.marketplaces
.
Looking forward for some help.paulgo
03/10/2023, 4:32 PMDaJacy
03/10/2023, 4:48 PM