diff --git a/web-client/Dockerfile b/web-client/Dockerfile index 8b1843602..91992c5e9 100644 --- a/web-client/Dockerfile +++ b/web-client/Dockerfile @@ -34,7 +34,7 @@ COPY --from=builder /app/public ./public # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing -# COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next +COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package.json ./package.json diff --git a/web-client/app/api/auth/[...nextauth]/route.ts b/web-client/app/api/auth/[...nextauth]/route.ts index 81164e7bb..474673d8b 100644 --- a/web-client/app/api/auth/[...nextauth]/route.ts +++ b/web-client/app/api/auth/[...nextauth]/route.ts @@ -34,6 +34,7 @@ export const authOptions = { issuer: `${process.env.AUTH_ISSUER}`, }), ], + secret: `${process.env.NEXTAUTH_SECRET}`, callbacks: { async jwt({ token, account }) { const nowTimestamp = Math.floor(Date.now() / 1000);