We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ae6a49 commit 19e195eCopy full SHA for 19e195e
Dockerfile
@@ -1,5 +1,9 @@
1
FROM node:22-alpine AS base
2
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
7
ENV MONGODB_URI_AUTH=mongodb://localhost:27020/auth
8
9
FROM base AS deps
auth.config.ts
@@ -4,5 +4,5 @@ import type { NextAuthConfig } from 'next-auth';
// https://authjs.dev/guides/edge-compatibility#middleware
export default {
providers: [GitHub],
- trustHost: true,
+ debug: true,
} satisfies NextAuthConfig;
0 commit comments