fix: resolve Prisma mismatch, update Next.js setup and docker configuration

This commit is contained in:
OG T
2026-06-07 13:38:59 +08:00
parent a270ad7813
commit aacf45d87d
9 changed files with 132 additions and 498 deletions

View File

@@ -11,7 +11,7 @@
"dependencies": {
"@agent-bounty/contracts": "workspace:*",
"@e2b/code-interpreter": "^2.6.0",
"@prisma/client": "^7.8.0",
"@prisma/client": "^6.4.1",
"ioredis": "^5.11.1",
"next": "16.2.7",
"react": "19.2.4",
@@ -25,7 +25,7 @@
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.2.7",
"prisma": "^7.8.0",
"prisma": "^6.4.1",
"tailwindcss": "^4",
"typescript": "^5"
}

View File

@@ -9,6 +9,6 @@ export default defineConfig({
path: "prisma/migrations",
},
datasource: {
url: process.env["DATABASE_URL"],
url: process.env["DATABASE_URL"] as string,
},
});

View File

@@ -5,6 +5,7 @@ generator client {
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Task {

View File

@@ -1,6 +1,7 @@
import { prisma } from "@/lib/prisma";
import Link from "next/link";
export const dynamic = "force-dynamic";
export default async function Home() {
const tasks = await prisma.task.findMany({
orderBy: { created_at: "desc" }

View File

@@ -1,5 +1,7 @@
import { prisma } from "@/lib/prisma";
import { notFound } from "next/navigation";
export const dynamic = "force-dynamic";
import Link from "next/link";
export default async function TaskDetails({ params }: { params: Promise<{ id: string }> }) {

View File

@@ -1,5 +1,5 @@
import { prisma } from "./prisma";
import { Prisma } from "@prisma/client";
import { Prisma } from "../../prisma/generated/client";
export async function logAuditEvent(
tx: Prisma.TransactionClient,

View File

@@ -1,4 +1,4 @@
import { Prisma } from "@prisma/client";
import { Prisma } from "../../prisma/generated/client";
// In Phase 2, we use a Mock implementation for Stripe to ensure our DB state machine
// and idempotency rules are solid before integrating the real Stripe SDK.

View File

@@ -38,7 +38,7 @@ services:
condition: service_healthy
# We use a command override to run database push before starting next.js
command: >
sh -c "npx prisma db push --schema=apps/web/prisma/schema.prisma && node apps/web/server.js"
sh -c "npx prisma@6.4.1 db push --schema=apps/web/prisma/schema.prisma --skip-generate && node apps/web/server.js"
volumes:
agent_bounty_pgdata:

614
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff