Fix Supabase LockManager timeout error

- Disable auth persistence in Supabase client
- Set autoRefreshToken: false, persistSession: false
- Prevents 'Acquiring an exclusive Navigator LockManager lock' timeout
- Applied to both services/supabase.ts and api/experiments.ts

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Christian Vidal Wolf
2026-02-21 09:29:22 +01:00
co-authored by Qwen-Coder
parent d535004a29
commit 8d05173b40
2 changed files with 16 additions and 2 deletions
+7 -1
View File
@@ -4,7 +4,13 @@ import { Experiment, ExperimentCreateInput } from '../types';
const supabase = createClient(
process.env.SUPABASE_URL || '',
process.env.SUPABASE_SERVICE_KEY || ''
process.env.SUPABASE_SERVICE_KEY || '',
{
auth: {
autoRefreshToken: false,
persistSession: false
}
}
);
export default async function handler(req: VercelRequest, res: VercelResponse) {