stingray21
07/07/2022, 2:04 PMredirectTo
parameter in the template? Currently it's href="{{ .ConfirmationURL }}"
koakh
07/07/2022, 3:18 PMshell
# Get the code
git clone --depth 1 https://github.com/supabase/supabase
# Go to the docker folder
cd supabase/docker
# Copy the fake env vars
cp .env.example .env
# Start
docker-compose up
go to http://localhost:3000
but this self host is complete different from https://app.supabase.com/
in self host I don't have many things like in https://app.supabase.com/,
for example **I can't see the auth providers **like I see in https://app.supabase.com/
screenshot from self signed
https://i.imgur.com/rz77va2.png▾
https://i.imgur.com/KMefnPc.png▾
Kuha
07/07/2022, 3:24 PMMosh Tempest
07/07/2022, 3:28 PMLouieMartin
07/07/2022, 3:35 PMCAMOU
07/07/2022, 4:17 PMReact noob
07/07/2022, 4:26 PMts
const { data, error } = await supabase
.from('hiking')
.insert([
{ name: _data.name },
{ description: _data.description },
{ image: _data.image },
{ location: _data.location },
{ starting_point: _data.starting_point },
{ duration: _data.duration },
{ altitude: _data.altitude },
{ tip: _data.tip },
])`
it give me error 400 and they the columns altitude json
{
"message": "column \"altitude\" of relation \"hiking\" does not exist",
"code": "42703",
"details": null,
"hint": null
}``
NicoNico
07/07/2022, 5:05 PMpsql: error: connection to server at "db.~~~~~.supabase.co" (3.80.46.180), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
Brunowilliang
07/07/2022, 6:18 PMCAMOU
07/07/2022, 8:20 PMBicijay
07/07/2022, 9:05 PMWishSolidor
07/07/2022, 9:48 PMkoakh
07/07/2022, 10:23 PMLouieMartin
07/08/2022, 3:18 AMblockhead
07/08/2022, 4:05 AMNeedle
07/08/2022, 8:42 AMRoyDamari
07/08/2022, 1:51 PMhusK
07/08/2022, 1:52 PM1337
07/08/2022, 3:24 PM1337
07/08/2022, 5:40 PMhemantgangolia
07/08/2022, 6:41 PMsixfour
07/08/2022, 8:22 PMNeedle
07/08/2022, 8:42 PMmaiikol1192
07/08/2022, 9:13 PMFrosk
07/08/2022, 9:13 PMts
const data = await supabaseAdmin.auth.signIn(
{
provider: "discord",
},
{
redirectTo: `${SERVER_URL}/oauth/callback`,
scopes: "identify email guilds",
}
);
data
returned before auth confirmed on discords portal as:
json
{
provider: 'discord',
url: 'https://{supabase_db_id}.supabase.co/auth/v1/authorize?provider=discord&redirect_to=http%3A%2F%2Flocalhost%3A3000%2Foauth%2Fcallback&scopes=identify%20email%20guilds',
data: null,
session: null,
user: null,
error: null
}
That redirects me to
http://localhost:3000/games#access_token=...&refresh_token=...&token_type=bearer
Kalo0m
07/08/2022, 10:25 PMthatvegandev
07/08/2022, 11:00 PMpablob
07/09/2022, 1:19 AMsupabase.from('events').select('id, event_distances(distance)')
where the event_distances
table has a column event_id
which corresponds to the primary key of the events
table, with a foreign key relationship between them. It works just fine and gives me the correct results, but it is ~really~ slow (~25 secs/query with just a couple of thousand entries in both tables)... on the postgres side it is being executed as COALESCE((SELECT JSON_AGG(...
. I can write an essentially equivalent direct SQL query that completes in ~300ms (null-handling is ever so slightly different), so I am guessing there must be some way to adjust the select()
for better performance? I couldn't find much in the docs discussing query performance so any assistance greatly appreciated, thanks!bhaskar
07/09/2022, 2:18 AMaar2dee2
07/09/2022, 6:55 AMname
and id
from the countries
table. I'm using getServerSideProps or getStaticProps (as appropriate) for this. Wanted to check if it's possible to fetch the data in one location and use it in multiple pages?