Skip to content

Commit

Permalink
remove dashboard from publicRoutes. Added env in vercel.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokmy committed Jan 13, 2024
1 parent 524233d commit 5fcf5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5fcf5f1

Please sign in to comment.