import React from "react"; import { Link } from "react-router-dom"; import { ArrowRight, Shield } from "lucide-react"; interface TestResultProps { testResults: { url?: string; usingProxy?: boolean; proxyUrl?: string; client?: boolean; restApi?: boolean; auth?: boolean; database?: boolean; errors: string[]; } | null; } const SupabaseConnectionStatus: React.FC = ({ testResults }) => { if (!testResults) { return null; } return (
고급 진단 정보

Supabase URL:

{testResults?.url || '알 수 없음'}

{testResults?.usingProxy && (

CORS 프록시:

활성화됨 - {testResults.proxyUrl}

)}

클라이언트 초기화:

{testResults?.client ? '성공' : '실패'}

브라우저 정보:

{navigator.userAgent}

앱 버전:

1.0.0

{testResults && (

REST API: {testResults.restApi ? '✅' : '❌'}

인증: {testResults.auth ? '✅' : '❌'}

데이터베이스: {testResults.database ? '✅' : '❌'}

)}
Supabase 설정 변경
); }; export default SupabaseConnectionStatus;