From 86dcd23df7b866281fc281c182371de600f50196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EB=B3=91=EC=B2=A0?= Date: Wed, 25 Feb 2026 15:27:20 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EA=B3=84=EC=A0=95=EC=9D=84=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=EB=A1=9C=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 하드코딩 → process.env.NEXT_PUBLIC_DEV_USER_ID/PWD - 개발 환경: .env.local에 설정 → 자동 입력 - 배포 환경: 환경변수 없음 → 빈 값 - develop/main 코드 동일, 환경변수로만 동작 구분 Co-Authored-By: Claude Opus 4.6 --- src/components/auth/LoginPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/auth/LoginPage.tsx b/src/components/auth/LoginPage.tsx index 41e55819..24882ab9 100644 --- a/src/components/auth/LoginPage.tsx +++ b/src/components/auth/LoginPage.tsx @@ -24,8 +24,8 @@ export function LoginPage() { const t = useTranslations('auth'); const tCommon = useTranslations('common'); const tValidation = useTranslations('validation'); - const [userId, setUserId] = useState(""); - const [password, setPassword] = useState(""); + const [userId, setUserId] = useState(process.env.NEXT_PUBLIC_DEV_USER_ID || ""); + const [password, setPassword] = useState(process.env.NEXT_PUBLIC_DEV_USER_PWD || ""); const [showPassword, setShowPassword] = useState(false); const [rememberMe, setRememberMe] = useState(false); const [error, setError] = useState("");