diff --git a/.env.example b/.env.example index 08d41ed7..00816f00 100755 --- a/.env.example +++ b/.env.example @@ -1 +1,2 @@ DATABASE_URL=postgress://username:password@localhost:5432/canyon +AUTH_SECRET=s09C2BTdTg+Nb+t2eHpDTlCPXH9zGhsbzH9OjLYu6cU= diff --git a/packages/canyon-platform/next.config.ts b/packages/canyon-platform/next.config.ts index 5715fed4..201af039 100755 --- a/packages/canyon-platform/next.config.ts +++ b/packages/canyon-platform/next.config.ts @@ -13,22 +13,7 @@ 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" - ) { - 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(process.env); - // console.log(sysSetting); +export default async function () { const nextConfig: NextConfig = { typescript: { ignoreBuildErrors: true,