Skip to content

Commit 19e195e

Browse files
committed
2025.02.22 next auth: debug mode
1 parent 5ae6a49 commit 19e195e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM node:22-alpine AS base
22

3+
# For some reason nextjs tries to run the /lib/mongo-client.ts file at build time
4+
# and the build fails because this variable is not set
5+
# this must be understood and fixed in the future
6+
# for now just make nextjs happy by setting this variable
37
ENV MONGODB_URI_AUTH=mongodb://localhost:27020/auth
48

59
FROM base AS deps

auth.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import type { NextAuthConfig } from 'next-auth';
44
// https://authjs.dev/guides/edge-compatibility#middleware
55
export default {
66
providers: [GitHub],
7-
trustHost: true,
7+
debug: true,
88
} satisfies NextAuthConfig;

0 commit comments

Comments
 (0)