Bartek
04/02/2022, 2:48 AMjs
const { createClient } = require('@supabase/supabase-js');
const { SUPABASE_KEY, SUPABASE_URL } = process.env;
const bucket = async () => {
const supabase = createClient(SUPABASE_URL, SUPABASE_KEY);
const { data, error } = await supabase.storage.createBucket('avatar');
console.log(data);
console.log(error);
};
bucket();
=================
this is the answer from the bucket function
null
{
message: 'new row violates row-level security policy for table "buckets"',
status: 400
}
Needle
04/02/2022, 2:48 AM/title
command!
We have solved your problem?
Click the button below to archive it.garyaustin
04/02/2022, 3:41 AMNeedle
04/02/2022, 3:41 AMgaryaustin
04/02/2022, 3:41 AM