From 5fcf5f13846c090eb54751e0aa7519bfecf3a564 Mon Sep 17 00:00:00 2001 From: dokmy <142666819+dokmy@users.noreply.github.com> Date: Sat, 13 Jan 2024 14:25:43 +0800 Subject: [PATCH] remove dashboard from publicRoutes. Added env in vercel. --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 465f72e..ef26808 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -5,7 +5,7 @@ import { authMiddleware } from "@clerk/nextjs"; // See https://clerk.com/docs/references/nextjs/auth-middleware for more information about configuring your Middleware export default authMiddleware({ apiRoutes: ['/api/chat', '/api/search'], - publicRoutes: ["/","/dashboard", "/api/webhook"] + publicRoutes: ["/", "/api/webhook"] }); export const config = {