diff --git a/apps/mobile/src/shared/apis/school/axios.ts b/apps/mobile/src/shared/apis/school/axios.ts index b3b85ae..396db72 100644 --- a/apps/mobile/src/shared/apis/school/axios.ts +++ b/apps/mobile/src/shared/apis/school/axios.ts @@ -23,7 +23,7 @@ export const getSchoolUserList = async ({ page, schoolName, }: GetSchoolUserList.Params): Promise => { - const response = await client.get(SCHOOL_URL.GET_SCHOOL_LIST, { + const response = await client.get(SCHOOL_URL.GET_SCHOOL_USER_LIST, { params: { page, schoolName, diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts deleted file mode 100644 index 8dd3da4..0000000 --- a/apps/web/middleware.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { NextRequest, NextResponse } from 'next/server'; - -export function middleware(req: NextRequest) { - const url = req.nextUrl.clone(); - const host = req.headers.get('host') || ''; - const pathname = req.nextUrl.pathname; - - console.log(`Middleware invoked for host: ${host}, path: ${pathname}`); - - // 모바일 기기 감지 - const userAgent = req.headers.get('user-agent') || ''; - const isMobile = - /Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - userAgent, - ); - - console.log(isMobile); - - if (isMobile) { - // 모바일 서브도메인으로 리다이렉션 - url.hostname = `m.${url.hostname}`; - return NextResponse.redirect(url); - } - - return NextResponse.next(); -} - -export const config = { - matcher: '/:path*', // 모든 경로에 적용 -}; diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index 710845c..fbd9685 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -12,9 +12,6 @@ const nextConfig = { return config; }, - experimental: { - middleware: true, - }, images: { dangerouslyAllowSVG: true, // svg 이미지 허용 contentDispositionType: 'attachment', diff --git a/apps/web/src/shared/apis/school/axios.ts b/apps/web/src/shared/apis/school/axios.ts index b3b85ae..396db72 100644 --- a/apps/web/src/shared/apis/school/axios.ts +++ b/apps/web/src/shared/apis/school/axios.ts @@ -23,7 +23,7 @@ export const getSchoolUserList = async ({ page, schoolName, }: GetSchoolUserList.Params): Promise => { - const response = await client.get(SCHOOL_URL.GET_SCHOOL_LIST, { + const response = await client.get(SCHOOL_URL.GET_SCHOOL_USER_LIST, { params: { page, schoolName,