From 79155711302de93f1ad434bf1b620953274b39e9 Mon Sep 17 00:00:00 2001 From: mstfyldz Date: Mon, 10 Aug 2026 13:49:10 +0300 Subject: [PATCH] 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. --- scratch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scratch.js b/scratch.js index 07b3af2..4c2d659 100644 --- a/scratch.js +++ b/scratch.js @@ -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);