데이터불러오기기
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user