refactor: 로그인 테스트 계정을 환경변수로 분리
- 하드코딩 → process.env.NEXT_PUBLIC_DEV_USER_ID/PWD - 개발 환경: .env.local에 설정 → 자동 입력 - 배포 환경: 환경변수 없음 → 빈 값 - develop/main 코드 동일, 환경변수로만 동작 구분 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,8 +24,8 @@ export function LoginPage() {
|
|||||||
const t = useTranslations('auth');
|
const t = useTranslations('auth');
|
||||||
const tCommon = useTranslations('common');
|
const tCommon = useTranslations('common');
|
||||||
const tValidation = useTranslations('validation');
|
const tValidation = useTranslations('validation');
|
||||||
const [userId, setUserId] = useState("");
|
const [userId, setUserId] = useState(process.env.NEXT_PUBLIC_DEV_USER_ID || "");
|
||||||
const [password, setPassword] = useState("");
|
const [password, setPassword] = useState(process.env.NEXT_PUBLIC_DEV_USER_PWD || "");
|
||||||
const [showPassword, setShowPassword] = useState(false);
|
const [showPassword, setShowPassword] = useState(false);
|
||||||
const [rememberMe, setRememberMe] = useState(false);
|
const [rememberMe, setRememberMe] = useState(false);
|
||||||
const [error, setError] = useState("");
|
const [error, setError] = useState("");
|
||||||
|
|||||||
Reference in New Issue
Block a user