mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
minor fixes
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user