Fixed docker deploments, moved files to _folders in dispatch app
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
AuthOptions,
|
||||
getServerSession as getNextAuthServerSession,
|
||||
} from "next-auth";
|
||||
import { AuthOptions, getServerSession as getNextAuthServerSession } from "next-auth";
|
||||
import { PrismaAdapter } from "@next-auth/prisma-adapter";
|
||||
import Credentials from "next-auth/providers/credentials";
|
||||
import { prisma, PrismaClient } from "@repo/db";
|
||||
@@ -36,10 +33,10 @@ export const options: AuthOptions = {
|
||||
},
|
||||
}),
|
||||
],
|
||||
secret: process.env.NEXTAUTH_SECRET,
|
||||
secret: process.env.AUTH_DISPATCH_SECRET,
|
||||
cookies: {
|
||||
sessionToken: {
|
||||
name: `${process.env.NEXTAUTH_COOKIE_PREFIX}-next-auth.session-token`, // Ändere den Namen für App 1
|
||||
name: `${process.env.AUTH_DISPATCH_COOKIE_PREFIX}-next-auth.session-token`, // Ändere den Namen für App 1
|
||||
options: {
|
||||
httpOnly: true,
|
||||
secure: process.env.NODE_ENV === "production",
|
||||
@@ -47,7 +44,7 @@ export const options: AuthOptions = {
|
||||
},
|
||||
},
|
||||
csrfToken: {
|
||||
name: `${process.env.NEXTAUTH_COOKIE_PREFIX}-next-auth.csrf-token`,
|
||||
name: `${process.env.AUTH_DISPATCH_COOKIE_PREFIX}-next-auth.csrf-token`,
|
||||
options: {
|
||||
httpOnly: true,
|
||||
secure: process.env.NODE_ENV === "production",
|
||||
|
||||
Reference in New Issue
Block a user