Revert middleware name
This commit is contained in:
parent
537e261570
commit
d061051803
@ -10,7 +10,7 @@ import {
|
|||||||
PREFIX_TAG,
|
PREFIX_TAG,
|
||||||
} from './src/app/path';
|
} from './src/app/path';
|
||||||
|
|
||||||
export function proxy(req: NextRequest, res:NextResponse) {
|
export default function middleware(req: NextRequest, res:NextResponse) {
|
||||||
const pathname = req.nextUrl.pathname;
|
const pathname = req.nextUrl.pathname;
|
||||||
|
|
||||||
if (pathname === PATH_ADMIN) {
|
if (pathname === PATH_ADMIN) {
|
||||||
Loading…
Reference in New Issue
Block a user