mirror of
https://github.com/mfts/papermark.git
synced 2025-12-20 01:03:24 +08:00
Merge branch 'main' into feat/passkey
This commit is contained in:
@@ -23,7 +23,11 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
|
||||
|
||||
if (
|
||||
process.env.NODE_ENV !== "development" &&
|
||||
!(host?.includes("papermark.io") || host?.endsWith(".vercel.app"))
|
||||
!(
|
||||
host?.includes("localhost") ||
|
||||
host?.includes("papermark.io") ||
|
||||
host?.endsWith(".vercel.app")
|
||||
)
|
||||
) {
|
||||
return DomainMiddleware(req);
|
||||
}
|
||||
@@ -37,6 +41,8 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
|
||||
path !== "/docsend-alternatives" &&
|
||||
path !== "/launch-week" &&
|
||||
path !== "/open-source-investors" &&
|
||||
path !== "/ai" &&
|
||||
path !== "/share-notion-page" &&
|
||||
!path.startsWith("/alternatives/") &&
|
||||
!path.startsWith("/blog/") &&
|
||||
!path.startsWith("/view/")
|
||||
|
||||
Reference in New Issue
Block a user