chore: 서버 쪽 백엔드 호출을 크롬 DevTools Network에서 보는 dev:inspect 스크립트를 둔다
관리자 앱은 백엔드를 서버(Server Component·Action)에서만 부르므로 브라우저 Network 탭에는 안 잡힌다. Node 24부터 인스펙터 Network 도메인이 undici fetch를 잡으므로(20은 안 됨 — 확인) `next dev --inspect`에 `--experimental-network-inspection`을 얹어 chrome://inspect의 라우터 서버 타깃에서 본다. 클라이언트 직접 호출로 바꾸는 것은 토큰 노출이라 하지 않는다. Co-Authored-By: Claude Opus 5
@23324f2acf1a77af626d7b0f7e0a5c208b282951
--- package.json
+++ package.json
... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 |
"private": true, |
| 5 | 5 |
"scripts": {
|
| 6 | 6 |
"dev": "next dev", |
| 7 |
+ "dev:inspect": "NODE_OPTIONS=--experimental-network-inspection next dev --inspect", |
|
| 7 | 8 |
"build": "next build", |
| 8 | 9 |
"start": "next start", |
| 9 | 10 |
"lint": "eslint" |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?