diff --git a/apps/examples/nextjs/app/auth/[...nextauth]/route.ts b/apps/examples/nextjs/app/api/auth/[...nextauth]/route.ts similarity index 100% rename from apps/examples/nextjs/app/auth/[...nextauth]/route.ts rename to apps/examples/nextjs/app/api/auth/[...nextauth]/route.ts diff --git a/apps/examples/nextjs/auth.ts b/apps/examples/nextjs/auth.ts index fa7c049ea3..ab83175409 100644 --- a/apps/examples/nextjs/auth.ts +++ b/apps/examples/nextjs/auth.ts @@ -100,7 +100,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({ WorkOS({ connection: process.env.AUTH_WORKOS_CONNECTION! }), Zoom, ], - basePath: "/auth", + basePath: "/api/auth", session: { strategy: "jwt" }, callbacks: { authorized({ request, auth }) { diff --git a/lefthook.yml b/lefthook.yml index b04410518c..05b9c66d45 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -3,4 +3,6 @@ pre-commit: commands: format: run: pnpm prettier --cache --write {staged_files} + exclude: + - apps/examples/nextjs/app/api/auth/* stage_fixed: true