moved middleware to proxy according to new changes in Nextjs

This commit is contained in:
2025-11-12 11:15:09 +01:00
parent 4f9e3a7ed0
commit ba8c42e30e

View File

@@ -1,6 +1,6 @@
import { NextRequest, NextResponse } from 'next/server';
export function middleware(req: NextRequest) {
export function proxy(req: NextRequest) {
const mode = process.env.STORE_MODE;
const { pathname } = req.nextUrl;