refactor: migrate middleware.ts to proxy.ts (Next.js 16)

Renamed middleware convention to proxy as per Next.js 16 deprecation warning.
- Renamed src/middleware.ts to src/proxy.ts
- Renamed exported function from middleware() to proxy()
This commit is contained in:
Max
2026-01-27 11:28:16 +07:00
parent 7084ebff05
commit 3f4db8afb9

View File

@@ -1,7 +1,7 @@
import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';
export function middleware(request: NextRequest) {
export function proxy(request: NextRequest) {
// Define public paths that don't require authentication
const publicPaths = [
'/login',