From 27ee53c35011d303148d7c8bc1fb6b581b821db3 Mon Sep 17 00:00:00 2001 From: ysCha Date: Wed, 6 May 2026 10:23:31 +0900 Subject: [PATCH] =?UTF-8?q?dev=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=E2=80=94=20dev:local-api,=20dev:log:local?= =?UTF-8?q?-api=20(localhost:8080=20API=20=EC=A0=84=ED=99=98=EC=9A=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.localhost | 3 ++- .gitignore | 3 +++ package.json | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.env.localhost b/.env.localhost index 3b355869..3532ed1f 100644 --- a/.env.localhost +++ b/.env.localhost @@ -33,4 +33,5 @@ NEXT_PUBLIC_AWS_S3_BASE_URL="//files.hanasys.jp" S3_PROFILE="dev" #logging -NEXT_PUBLIC_ENABLE_LOGGING=false +# [debug auto-capture 2026-05-06] true 로 켜면 debugCapture 가 debug/*.json/*.log 로 자동 저장. +NEXT_PUBLIC_ENABLE_LOGGING=true diff --git a/.gitignore b/.gitignore index a235b0ff..317a0dab 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,9 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +# [debug auto-capture 2026-05-06] debugCapture 산출물 / dev 서버 stdout +debug/ +dev.log # local env files .env*.local diff --git a/package.json b/package.json index 676d8f4f..1f96d08c 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "private": true, "scripts": { "dev": "env-cmd -f .env.localhost next dev", + "dev:log": "env-cmd -f .env.localhost next dev 2>&1 | tee dev.log", + "dev:local-api": "NEXT_PUBLIC_API_SERVER_PATH=http://localhost:8080 env-cmd --no-override -f .env.localhost next dev", + "dev:log:local-api": "NEXT_PUBLIC_API_SERVER_PATH=http://localhost:8080 env-cmd --no-override -f .env.localhost next dev 2>&1 | tee dev.log", "local:dev": "env-cmd -f .env.local.dev next dev", "build": "env-cmd -f .env.production next build", "build:dev": "env-cmd -f .env.development next build",