minor fixes

This commit is contained in:
Sara
2024-01-02 19:46:00 +01:00
parent de88425a02
commit eecb91ccdd
3 changed files with 2 additions and 35 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -27,8 +27,7 @@ export async function middleware(request: NextRequest) {
if (
request.nextUrl.pathname == "/" ||
request.nextUrl.pathname.startsWith("/transcripts") ||
request.nextUrl.pathname.startsWith("/browse") ||
request.nextUrl.pathname.startsWith("/chakra-showcase")
request.nextUrl.pathname.startsWith("/browse")
) {
if (!fiefResponse.headers.get("x-middleware-rewrite")) {
fiefResponse.headers.set(
@@ -43,8 +42,7 @@ export async function middleware(request: NextRequest) {
if (
request.nextUrl.pathname == "/" ||
request.nextUrl.pathname.startsWith("/transcripts") ||
request.nextUrl.pathname.startsWith("/browse") ||
request.nextUrl.pathname.startsWith("/chakra-showcase")
request.nextUrl.pathname.startsWith("/browse")
) {
return NextResponse.rewrite(
request.nextUrl.origin + "/" + domain + request.nextUrl.pathname,