Skip to content

Commit

Permalink
chore: daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 9, 2024
1 parent f47e6c2 commit 961e53a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/canyon-platform/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,22 @@ import prisma from "@/lib/prisma";

// flag position, do not delete

export default async function () {
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);
const nextConfig: NextConfig = {
typescript: {
ignoreBuildErrors: true,
Expand Down

0 comments on commit 961e53a

Please sign in to comment.