diff --git a/apps/st/.env.example b/apps/st/.env.example index c0d26e6f2..e9667be0f 100644 --- a/apps/st/.env.example +++ b/apps/st/.env.example @@ -1,7 +1,7 @@ # apps/cs/src/shared/config/env.ts 참고 -NEXT_PUBLIC_PORT=3000 -NEXT_PUBLIC_PROXY_HOST=http://localhost:3000 +NEXT_PUBLIC_PORT=3001 +NEXT_PUBLIC_PROXY_HOST=http://localhost:3001 SERVER_API_URL=http://192.168.0.102:8000 -NEXT_PUBLIC_SITE_ID=CS +NEXT_PUBLIC_SITE_ID=ST NEXT_PUBLIC_SUB_DOMAIN=http://localhost:3000 NEXT_PUBLIC_TINY_API_KEY=t9nc4z6inquvvd5pq1vea8wcp7lb01qmqseh6egms9vpaju2 \ No newline at end of file diff --git a/apps/st/middleware.ts b/apps/st/middleware.ts index db6600caf..bd0020508 100644 --- a/apps/st/middleware.ts +++ b/apps/st/middleware.ts @@ -10,7 +10,7 @@ import { ST_SERVICE_URL, } from "./src/shared/config"; -const serverApiUrl = process.env.SERVER_API_URL ?? "http://localhost:3000"; +const serverApiUrl = process.env.SERVER_API_URL; const stServiceUrl = ST_SERVICE_URL; diff --git a/apps/st/package.json b/apps/st/package.json index ef32c14cd..1f403acde 100644 --- a/apps/st/package.json +++ b/apps/st/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", + "dev": "next dev -p 3001", "build": "next build", "start": "next start", "lint": "next lint" diff --git a/apps/st/src/components/statistics/verification/HbStatisticsVerification.tsx b/apps/st/src/components/statistics/verification/HbStatisticsVerification.tsx index 4dd37c89d..cb0f1d932 100644 --- a/apps/st/src/components/statistics/verification/HbStatisticsVerification.tsx +++ b/apps/st/src/components/statistics/verification/HbStatisticsVerification.tsx @@ -73,7 +73,7 @@ interface VerificationFormState { percentile: string; a: string; c: string; - verificationYear: string; + statisticsYear: string; } interface OutlierDialogState { @@ -118,7 +118,7 @@ export default function HbStatisticsVerification() { percentile: "", a: "", c: "", - verificationYear: defaultYear, + statisticsYear: defaultYear, }); const [selectedTargets, setSelectedTargets] = useState([]); const [outlierDialog, setOutlierDialog] = useState({ @@ -298,8 +298,8 @@ export default function HbStatisticsVerification() { } async function handleSubmit() { - if (!formState.verificationYear) { - alert("검증년도를 선택해 주세요."); + if (!formState.statisticsYear) { + alert("통계년도를 선택해 주세요."); return; } @@ -308,7 +308,7 @@ export default function HbStatisticsVerification() { return; } - const yearNew = toNumber(formState.verificationYear); + const yearNew = toNumber(formState.statisticsYear); const payload: AnalysisRequestPayload = { dataset: verifyType === "ALL" @@ -337,7 +337,7 @@ export default function HbStatisticsVerification() { percentile: "0", a: "0", c: "0", - verificationYear: defaultYear, + statisticsYear: defaultYear, }); setSelectedTargets([]); } @@ -385,13 +385,13 @@ export default function HbStatisticsVerification() {
+
+ + +
+