13 lines
316 B
TypeScript
13 lines
316 B
TypeScript
import {NextFetchEvent, NextRequest} from "next/server";
|
|
import {catchRedirectPageLanding} from "@/proxy/catchRedirectPageLanding";
|
|
|
|
export const config = {
|
|
matcher: [
|
|
"/redirect/:path*",
|
|
],
|
|
}
|
|
|
|
export function proxy(req: NextRequest, event: NextFetchEvent) {
|
|
return catchRedirectPageLanding(req, event);
|
|
}
|