Skip to content

Commit

Permalink
fix: make homepage public accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
diego3g committed Apr 9, 2024
1 parent dc58ffb commit 189e160
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/auth/auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export const authConfig = {
authorized({ auth, request: { nextUrl } }) {
const isLoggedIn = !!auth?.user

const isOnPublicPages = nextUrl.pathname.startsWith('/auth')
const isOnPublicPages =
nextUrl.pathname.startsWith('/auth') || nextUrl.pathname === '/'
const isOnWebhooks = nextUrl.pathname.startsWith('/api/webhooks')
const isOnPublicAPIRoutes = nextUrl.pathname.startsWith('/api/auth')
const isOnAPIRoutes = nextUrl.pathname.startsWith('/api')
Expand Down

0 comments on commit 189e160

Please sign in to comment.