|
- /c/{client.token.slice(0, 8)}…
+ /client/{client.token.slice(0, 8)}…
|
diff --git a/src/proxy.ts b/src/proxy.ts
index fefca07..9a8eab9 100644
--- a/src/proxy.ts
+++ b/src/proxy.ts
@@ -29,8 +29,8 @@ export async function proxy(request: NextRequest) {
}
// ── CLIENT TOKEN GUARD ───────────────────────────────────────────────────
- if (pathname.startsWith("/c/")) {
- const tokenMatch = pathname.match(/^\/c\/([a-zA-Z0-9_-]+)/);
+ if (pathname.startsWith("/client/")) {
+ const tokenMatch = pathname.match(/^\/client\/([a-zA-Z0-9_-]+)/);
if (!tokenMatch) {
return NextResponse.rewrite(new URL("/not-found", request.url));
}
@@ -60,5 +60,5 @@ export async function proxy(request: NextRequest) {
}
export const config = {
- matcher: ["/admin/:path*", "/c/:path*"],
+ matcher: ["/admin/:path*", "/client/:path*"],
};