mirror of
https://github.com/velocitatem/PHANTOM.git
synced 2026-05-31 08:33:36 +00:00
moved middleware to proxy according to new changes in Nextjs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user