diff --git a/packages/canyon-platform/auth.ts b/packages/canyon-platform/auth.ts index 83792976..c03556ec 100644 --- a/packages/canyon-platform/auth.ts +++ b/packages/canyon-platform/auth.ts @@ -3,8 +3,6 @@ import GitLab from "next-auth/providers/gitlab"; import GitHub from "next-auth/providers/github"; import prisma from "@/lib/prisma"; -console.log(process.env, "process.env|auth.ts"); - export const { handlers, auth } = NextAuth(() => { return { providers: [ diff --git a/packages/canyon-platform/next.config.ts b/packages/canyon-platform/next.config.ts index 286916c9..d3b31435 100755 --- a/packages/canyon-platform/next.config.ts +++ b/packages/canyon-platform/next.config.ts @@ -14,21 +14,19 @@ import prisma from "@/lib/prisma"; // flag position, do not delete export default async function (phase: string) { - // console.log(phase, "phase"); if ( - true - // phase === "phase-production-server" || - // phase === "phase-development-server" + // true + phase === "phase-production-server" || + phase === "phase-development-server" ) { const sysSetting = await prisma.sysSetting.findMany({ where: {}, }); for (let i = 0; i < sysSetting.length; i++) { process.env[sysSetting[i].key] = sysSetting[i].value; + console.log(`设置${sysSetting[i].key}为${sysSetting[i].value}`); } } - // console.log(process.env); - // console.log(sysSetting); const nextConfig: NextConfig = { typescript: { ignoreBuildErrors: true,