mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
try chakra-ui
This commit is contained in:
@@ -27,7 +27,8 @@ export async function middleware(request: NextRequest) {
|
||||
if (
|
||||
request.nextUrl.pathname == "/" ||
|
||||
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")) {
|
||||
fiefResponse.headers.set(
|
||||
@@ -42,7 +43,8 @@ export async function middleware(request: NextRequest) {
|
||||
if (
|
||||
request.nextUrl.pathname == "/" ||
|
||||
request.nextUrl.pathname.startsWith("/transcripts") ||
|
||||
request.nextUrl.pathname.startsWith("/browse")
|
||||
request.nextUrl.pathname.startsWith("/browse") ||
|
||||
request.nextUrl.pathname.startsWith("/chakra-showcase")
|
||||
) {
|
||||
return NextResponse.rewrite(
|
||||
request.nextUrl.origin + "/" + domain + request.nextUrl.pathname,
|
||||
|
||||
Reference in New Issue
Block a user