diff --git a/next.config.ts b/next.config.ts index 49e5c6a..aa7c1ca 100644 --- a/next.config.ts +++ b/next.config.ts @@ -11,6 +11,10 @@ const nextConfig: NextConfig = { protocol: "https", hostname: "seccdn.libravatar.org", }, + { + protocol: "http", + hostname: "localhost", + }, ], }, }; diff --git a/src/auth.ts b/src/auth.ts index 0151999..7c36e5d 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -6,5 +6,12 @@ import { PrismaAdapter } from "@auth/prisma-adapter"; export const { handlers, signIn, signOut, auth } = NextAuth({ adapter: PrismaAdapter(prisma), - providers: [GitHub, Gitea], + providers: [ + GitHub, + Gitea({ + enterprise: { + baseUrl: process.env.GITEA_BASE_URL, + }, + }), + ], });