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 b2971f8 commit a0b7b57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions packages/canyon-platform/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
10 changes: 4 additions & 6 deletions packages/canyon-platform/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a0b7b57

Please sign in to comment.