로그인 로그에 IP 남기기

This commit is contained in:
2026-12-03 18:56:58 +09:00
parent a5ece25b6c
commit f729c32088
18 changed files with 124 additions and 10 deletions
+3
View File
@@ -1,5 +1,6 @@
import { cookies } from "next/headers";
import { NextResponse } from "next/server";
import { clientIpHeaders } from "../../../../client-ip";
import {
ACCESS_TOKEN,
@@ -20,6 +21,8 @@ async function handler(
const headers: Record<string, string> = {
"Content-Type": "application/json",
"X-Site-Id": SITE_ID,
// 브라우저 IP (로그인/접속 로그용)
...clientIpHeaders(request),
};
const deviceId = request.headers.get("X-Device-Id");
if (deviceId) {