Initial PHP rebuild of the app
This commit is contained in:
690 files changed
+33944
-12046
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import type { NextAuthConfig } from "next-auth";
|
||||
|
||||
/**
|
||||
* The subset of NextAuth config that doesn't touch the database — no
|
||||
* adapter, no Credentials `authorize()` (which needs Prisma + bcrypt).
|
||||
* `proxy.ts` builds its own lightweight `NextAuth(authConfig)` instance
|
||||
* from this alone, so checking "is there a valid session" on every
|
||||
* request doesn't spin up a Postgres connection pool just to do it. The
|
||||
* full config in `auth.ts` (adapter, real providers) extends this one.
|
||||
*/
|
||||
export const authConfig = {
|
||||
pages: {
|
||||
signIn: "/sign-in",
|
||||
},
|
||||
providers: [],
|
||||
session: { strategy: "jwt" },
|
||||
} satisfies NextAuthConfig;
|
||||
Reference in new issue
Block a user