diff --git a/middleware.public.js b/middleware.public.js index d196017f1..eac91ad23 100644 --- a/middleware.public.js +++ b/middleware.public.js @@ -36,13 +36,6 @@ export async function middleware(request) { const url = request.nextUrl; - const isPostContents = url.pathname.startsWith('/api/v1/contents') && request.method === 'POST'; - const isReward = url.pathname === '/api/v1/user' && request.method === 'GET'; - if (isPostContents || isReward) { - url.pathname = '/api/v1/_responses/maintenance'; - return NextResponse.rewrite(url); - } - try { const rateLimitResult = await rateLimit.check(request);