Supabase migrated from the sslip.io address to https://supa.ayris.tech; scratch.js now reads SUPABASE_URL/SUPABASE_SERVICE_ROLE_KEY from env instead of hardcoding the stale host and a plaintext secret.
9 lines
359 B
JavaScript
9 lines
359 B
JavaScript
const { createClient } = require('@supabase/supabase-js');
|
|
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_ROLE_KEY);
|
|
async function test() {
|
|
const { data, error } = await supabase.from('cases').select('*, documents(id)');
|
|
console.log('Error:', error);
|
|
console.log('Data:', JSON.stringify(data, null, 2));
|
|
}
|
|
test();
|