데이터불러오기기

This commit is contained in:
2025-10-15 10:31:03 +00:00
parent ddb70018b9
commit 0ab4b037eb
5 changed files with 202 additions and 4 deletions

View File

@@ -10,10 +10,12 @@ export default auth(async (req) => {
// 경로 추출
const { pathname } = req.nextUrl;
console.log("request host:", req.headers.get('host'));
// 로컬 접속 확인 (특정 경로만 우회)
const isLocal = req.headers.get('host')?.includes('localhost') ||
req.headers.get('host')?.includes('127.0.0.1');
if (isLocal && pathname.startsWith("/api/contents")) {
return NextResponse.next();
}