Files
ARTEX/web/src/proxy.disabled.ts
T
Autumn-27andClaude Opus 4.8 0ef8561411 chore: ARTEX 初始化
ARTEX — AI 自主渗透测试系统(Go 后端 + Next.js 前端,单二进制内嵌)。

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-07-26 04:27:45 -04:00

26 lines
744 B
TypeScript

// Proxy disabled.
// Rename this file to `proxy.ts` to enable it.
import { type NextRequest, NextResponse } from "next/server";
/**
* Runs before requests complete.
* Use for rewrites, redirects, or header changes.
* Refer to Next.js Proxy docs for more examples.
*/
export function proxy(_req: NextRequest) {
// Example: redirect to dashboard if user is logged in
// const token = req.cookies.get("session_token")?.value;
// if (token && req.nextUrl.pathname === "/auth/login")
// return NextResponse.redirect(new URL("/dashboard", req.url));
return NextResponse.next();
}
/**
* Matcher runs for all routes.
* To skip assets or APIs, use a negative matcher from docs.
*/
export const config = {
matcher: "/:path*",
};