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.
This commit is contained in:
@@ -42,10 +42,10 @@ try {
|
|||||||
flowType: 'implicit',
|
flowType: 'implicit',
|
||||||
},
|
},
|
||||||
global: {
|
global: {
|
||||||
fetch: (...args) => {
|
fetch: (url, options) => {
|
||||||
// CORS 디버깅을 위한 사용자 정의 fetch
|
// CORS 디버깅을 위한 사용자 정의 fetch
|
||||||
console.log('Supabase fetch 요청:', args[0]);
|
console.log('Supabase fetch 요청:', url);
|
||||||
return fetch(...args).then(response => {
|
return fetch(url, options).then(response => {
|
||||||
console.log('Supabase 응답 상태:', response.status);
|
console.log('Supabase 응답 상태:', response.status);
|
||||||
return response;
|
return response;
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
Reference in New Issue
Block a user