change middleware to proxy to match conventions

This commit is contained in:
2026-04-15 10:01:16 +02:00
parent c07931229d
commit 3bcb45372f
-12
View File
@@ -1,12 +0,0 @@
import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";
export function middleware(request: NextRequest) {
if (request.nextUrl.pathname === '/') {
return NextResponse.redirect(new URL('/fr', request.url));
}
}
export const config = {
matcher: '/',
}