You've already forked domainstack.io
mirror of
https://github.com/jakejarvis/domainstack.io.git
synced 2025-12-02 19:33:48 -05:00
15 lines
591 B
TypeScript
15 lines
591 B
TypeScript
import type { NextRequest } from "next/server";
|
|
import { handleProxyRequest } from "@/lib/middleware";
|
|
|
|
export function proxy(request: NextRequest) {
|
|
return handleProxyRequest(request);
|
|
}
|
|
|
|
export const config = {
|
|
matcher: [
|
|
// Exclude API and Next internals/static assets for performance and to avoid side effects
|
|
// Static files use (?:[?#]|$) to match exactly (not as prefixes) so domains like "favicon.icon.com" are not excluded
|
|
"/((?!api/|_next/|_vercel/|_proxy/|(?:favicon.ico|icon.svg|robots.txt|sitemap.xml|manifest.webmanifest|opensearch.xml)(?:[?#]|$)).*)",
|
|
],
|
|
};
|