mirror of
https://github.com/mfts/papermark.git
synced 2025-12-20 01:03:24 +08:00
Merge branch 'main' into feat/domains
This commit is contained in:
@@ -31,7 +31,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
|
||||
return NextResponse.rewrite(url);
|
||||
}
|
||||
|
||||
if (path !== "/" && path !== "/alternatives/docsend") {
|
||||
if (path !== "/" && path !== "/alternatives/docsend" && !path.startsWith("/view/")) {
|
||||
return AppMiddleware(req);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user