feat: webforai.kr 공개 전 정리 (비식별 샘플·실제 리포트 비공개·약관)
- 랜딩 샘플 리포트·AI 답변 예시·문의 서식 예시를 가상 A성형외과로 바꾼다 (discovery_sample, 고정 시드 무작위 판정) - VITE_SITE=discovery 배포는 랜딩·요금·로그인·약관만 연다. 실제 병원 진단 결과와 내부 화면 경로는 홈으로 돌린다 - src/data·src/services 를 부수효과 없는 모듈로 표시해 쓰지 않는 실제 병원 목업이 공개 번들에서 빠지게 한다 - 공개 배포 번들에 GEMINI_API_KEY 를 넣지 않는다 - 헤더 Product·Use Cases 는 공개 배포에서 숨기고, 푸터에 개인정보처리방침·이용약관 페이지를 연결한다 - 기준표 설명의 실제 병원 예시 문구를 일반 예시로 바꾼다 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
63e71b73cc
commit
f03c6a5b90
14 files changed
+442
-50
No files matched your search
+42
-26
@@ -1,6 +1,6 @@
|
||||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { BrowserRouter, Routes, Route } from 'react-router';
|
||||
import { BrowserRouter, Routes, Route, Navigate } from 'react-router';
|
||||
import App from './App.tsx';
|
||||
import LandingPage from './pages/LandingPage.tsx';
|
||||
import PricingPage from './pages/PricingPage.tsx';
|
||||
@@ -21,39 +21,55 @@ import ActionPlanPage from './pages/ActionPlanPage.tsx';
|
||||
import SupportersBuildPage from './pages/SupportersBuildPage.tsx';
|
||||
import ImageReviewPage from './pages/ImageReviewPage.tsx';
|
||||
import SiteBuildPage from './pages/SiteBuildPage.tsx';
|
||||
import PrivacyPage from './pages/PrivacyPage.tsx';
|
||||
import TermsPage from './pages/TermsPage.tsx';
|
||||
import { DISCOVERY_SITE } from './lib/site';
|
||||
import './index.css';
|
||||
|
||||
// 배포별 루트 페이지 분기. Vercel 프로젝트의 환경변수로 정한다.
|
||||
const DISCOVERY_SITE = import.meta.env.VITE_SITE === 'discovery';
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route element={<App />}>
|
||||
{/* 루트에서 무엇을 그릴지는 배포마다 다르다. VITE_SITE=discovery 로 빌드한 배포(webforai.kr)는
|
||||
AI Discovery 랜딩을 루트에 놓고, 값이 없으면 지금까지처럼 INFINITH 랜딩을 놓는다.
|
||||
한 코드베이스로 두 사이트를 내되 기존 배포의 동작은 바꾸지 않는다. */}
|
||||
<Route index element={DISCOVERY_SITE ? <DiscoveryLandingPage /> : <LandingPage />} />
|
||||
<Route path="pricing" element={<PricingPage />} />
|
||||
<Route path="login" element={<LoginPage />} />
|
||||
<Route path="report/loading" element={<AnalysisLoadingPage />} />
|
||||
<Route path="report/loading/:reportId" element={<AnalysisLoadingPage />} />
|
||||
<Route path="report/:id" element={<ReportPage />} />
|
||||
<Route path="plan/:id" element={<MarketingPlanPage />} />
|
||||
<Route path="studio/:id" element={<ContentStudioPage />} />
|
||||
<Route path="channels" element={<ChannelConnectPage />} />
|
||||
<Route path="distribute" element={<DistributionPage />} />
|
||||
<Route path="performance" element={<PerformancePage />} />
|
||||
<Route path="data-validation" element={<DataValidationPage />} />
|
||||
<Route path="clinic/:id" element={<ClinicProfilePage />} />
|
||||
<Route path="api-dashboard" element={<ApiDashboardPage />} />
|
||||
<Route path="discovery" element={<DiscoveryLandingPage />} />
|
||||
<Route path="discovery/:id" element={<DiscoveryReportPage />} />
|
||||
<Route path="actions/:id" element={<ActionPlanPage />} />
|
||||
<Route path="supporters/:id" element={<SupportersBuildPage />} />
|
||||
<Route path="images/:id" element={<ImageReviewPage />} />
|
||||
<Route path="build/:id" element={<SiteBuildPage />} />
|
||||
{/* 배포마다 여는 화면이 다르다. VITE_SITE=discovery 로 빌드한 공개 배포(webforai.kr)는 AI Discovery 랜딩을
|
||||
루트에 두고 공개 페이지만 연다. 실제 병원 진단 결과·내부 작업 화면 경로는 홈으로 돌린다.
|
||||
값이 없으면 지금까지처럼 INFINITH 랜딩과 전체 화면을 연다. */}
|
||||
{DISCOVERY_SITE ? (
|
||||
<>
|
||||
<Route index element={<DiscoveryLandingPage />} />
|
||||
<Route path="pricing" element={<PricingPage />} />
|
||||
<Route path="login" element={<LoginPage />} />
|
||||
<Route path="privacy" element={<PrivacyPage />} />
|
||||
<Route path="terms" element={<TermsPage />} />
|
||||
<Route path="*" element={<Navigate to="/" replace />} />
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Route index element={<LandingPage />} />
|
||||
<Route path="pricing" element={<PricingPage />} />
|
||||
<Route path="login" element={<LoginPage />} />
|
||||
<Route path="report/loading" element={<AnalysisLoadingPage />} />
|
||||
<Route path="report/loading/:reportId" element={<AnalysisLoadingPage />} />
|
||||
<Route path="report/:id" element={<ReportPage />} />
|
||||
<Route path="plan/:id" element={<MarketingPlanPage />} />
|
||||
<Route path="studio/:id" element={<ContentStudioPage />} />
|
||||
<Route path="channels" element={<ChannelConnectPage />} />
|
||||
<Route path="distribute" element={<DistributionPage />} />
|
||||
<Route path="performance" element={<PerformancePage />} />
|
||||
<Route path="data-validation" element={<DataValidationPage />} />
|
||||
<Route path="clinic/:id" element={<ClinicProfilePage />} />
|
||||
<Route path="api-dashboard" element={<ApiDashboardPage />} />
|
||||
<Route path="discovery" element={<DiscoveryLandingPage />} />
|
||||
<Route path="discovery/:id" element={<DiscoveryReportPage />} />
|
||||
<Route path="actions/:id" element={<ActionPlanPage />} />
|
||||
<Route path="supporters/:id" element={<SupportersBuildPage />} />
|
||||
<Route path="images/:id" element={<ImageReviewPage />} />
|
||||
<Route path="build/:id" element={<SiteBuildPage />} />
|
||||
<Route path="privacy" element={<PrivacyPage />} />
|
||||
<Route path="terms" element={<TermsPage />} />
|
||||
</>
|
||||
)}
|
||||
</Route>
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
|
||||
Reference in new issue
Block a user