feat: add admin panel, Openinary media integration and standardized footer backlink
This commit is contained in:
@@ -10,11 +10,12 @@ function getLocale(request: NextRequest): string {
|
||||
export function proxy(request: NextRequest) {
|
||||
const pathname = request.nextUrl.pathname;
|
||||
|
||||
// Skip public files and _next requests
|
||||
// Skip public files, _next requests, api and admin routes
|
||||
if (
|
||||
pathname.startsWith('/_next') ||
|
||||
pathname.includes('.') ||
|
||||
pathname.startsWith('/api')
|
||||
pathname.startsWith('/api') ||
|
||||
pathname.startsWith('/admin')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
@@ -32,6 +33,3 @@ export function proxy(request: NextRequest) {
|
||||
}
|
||||
}
|
||||
|
||||
export const config = {
|
||||
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user