fix: remove hardcoded old Supabase domain and leaked service_role key from scratch.js
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.
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
const { createClient } = require('@supabase/supabase-js');
|
||||
const supabase = createClient('http://supabasekong-rhi9nc2gvlhrqnm734tiqdl6.167.233.145.149.sslip.io', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTc4NjEyNDEwMCwiZXhwIjo0OTQxNzk3NzAwLCJyb2xlIjoic2VydmljZV9yb2xlIn0.4wS7vys6ZoCxAyUSSwFN0_BHvm_LRWPDIlJ1dHPifx4');
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user