Skip to content

Commit

Permalink
Update public routes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Feb 7, 2025
1 parent 40e71cb commit 5fb2085
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/web/src/next-auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ import type { NextAuthConfig } from "next-auth";
import { env } from "@/env";
import { isQuickCreateEnabled } from "@/features/quick-create/constants";

const publicRoutes = [
"/login",
"/register",
"/invite/",
"/poll/",
"/auth/login",
];
const publicRoutes = ["/login", "/register", "/invite/", "/poll/", "/auth"];

if (isQuickCreateEnabled) {
publicRoutes.push("/quick-create", "/new");
Expand Down

0 comments on commit 5fb2085

Please sign in to comment.