Update default API URL
Update the default Supabase API URL to http://a11.ism.kr.
This commit is contained in:
@@ -17,15 +17,20 @@ export const signUpWithDirectApi = async (email: string, password: string, usern
|
||||
? supabaseUrl
|
||||
: `${supabaseUrl}/auth/v1`;
|
||||
|
||||
// URL에 중복 '/auth/v1' 경로가 있는지 확인하고 수정
|
||||
const normalizedUrl = baseUrl.includes('/auth/v1/auth/v1')
|
||||
? baseUrl.replace('/auth/v1/auth/v1', '/auth/v1')
|
||||
: baseUrl;
|
||||
|
||||
// 회원가입 API 엔드포인트 및 헤더 설정
|
||||
const signUpUrl = `${baseUrl}/signup`;
|
||||
const signUpUrl = `${normalizedUrl}/signup`;
|
||||
const headers = {
|
||||
'Content-Type': 'application/json',
|
||||
'apikey': supabaseKey,
|
||||
'X-Client-Info': 'supabase-js/2.x'
|
||||
};
|
||||
|
||||
console.log('회원가입 API 요청:', signUpUrl);
|
||||
console.log('회원가입 API 요청 URL:', signUpUrl);
|
||||
|
||||
// 회원가입 요청 전송
|
||||
const response = await fetch(signUpUrl, {
|
||||
|
||||
Reference in New Issue
Block a user