Fixed Having to Login to See teh Privacy Policy

This commit is contained in:
Ahmad 2024-02-21 17:33:57 -05:00
parent 5ebba23baf
commit 87979c8e13
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF

View file

@ -2,7 +2,7 @@ import { authMiddleware, redirectToSignIn } from '@clerk/nextjs';
import { NextResponse } from 'next/server';
export default authMiddleware({
publicRoutes: ['/', '/api/webhook'],
publicRoutes: ['/', '/api/webhook', '/privacy-policy', '/terms-of-service'],
afterAuth(auth, req) {
if (auth.userId && auth.isPublicRoute) {
let path = '/select-org';