From 3a149144822b3161c4b11728d71bf20e69edad1b Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 15 Mar 2025 12:10:58 +0000 Subject: [PATCH] Fix spread argument type error The spread argument in the fetch function was causing a TypeScript error. Changed the fetch implementation to resolve the type issue. --- src/lib/supabase.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/supabase.ts b/src/lib/supabase.ts index 9e46008..3847cf8 100644 --- a/src/lib/supabase.ts +++ b/src/lib/supabase.ts @@ -42,10 +42,10 @@ try { flowType: 'implicit', }, global: { - fetch: (...args) => { + fetch: (url, options) => { // CORS 디버깅을 위한 사용자 정의 fetch - console.log('Supabase fetch 요청:', args[0]); - return fetch(...args).then(response => { + console.log('Supabase fetch 요청:', url); + return fetch(url, options).then(response => { console.log('Supabase 응답 상태:', response.status); return response; }).catch(err => {