mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29: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 (
|
if (
|
||||||
request.nextUrl.pathname == "/" ||
|
request.nextUrl.pathname == "/" ||
|
||||||
request.nextUrl.pathname.startsWith("/transcripts") ||
|
request.nextUrl.pathname.startsWith("/transcripts") ||
|
||||||
request.nextUrl.pathname.startsWith("/browse") ||
|
request.nextUrl.pathname.startsWith("/browse")
|
||||||
request.nextUrl.pathname.startsWith("/chakra-showcase")
|
|
||||||
) {
|
) {
|
||||||
if (!fiefResponse.headers.get("x-middleware-rewrite")) {
|
if (!fiefResponse.headers.get("x-middleware-rewrite")) {
|
||||||
fiefResponse.headers.set(
|
fiefResponse.headers.set(
|
||||||
@@ -43,8 +42,7 @@ export async function middleware(request: NextRequest) {
|
|||||||
if (
|
if (
|
||||||
request.nextUrl.pathname == "/" ||
|
request.nextUrl.pathname == "/" ||
|
||||||
request.nextUrl.pathname.startsWith("/transcripts") ||
|
request.nextUrl.pathname.startsWith("/transcripts") ||
|
||||||
request.nextUrl.pathname.startsWith("/browse") ||
|
request.nextUrl.pathname.startsWith("/browse")
|
||||||
request.nextUrl.pathname.startsWith("/chakra-showcase")
|
|
||||||
) {
|
) {
|
||||||
return NextResponse.rewrite(
|
return NextResponse.rewrite(
|
||||||
request.nextUrl.origin + "/" + domain + request.nextUrl.pathname,
|
request.nextUrl.origin + "/" + domain + request.nextUrl.pathname,
|
||||||
|
|||||||
Reference in New Issue
Block a user