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:
mstfyldz
2026-08-10 13:49:10 +03:00
parent ce6fa9deae
commit 7915571130
+1 -1
View File
@@ -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);