diff --git a/frontends/nextjs/package-lock.json b/frontends/nextjs/package-lock.json index 752d6aa80..28bff6e2a 100644 --- a/frontends/nextjs/package-lock.json +++ b/frontends/nextjs/package-lock.json @@ -5744,6 +5744,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/jszip": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@types/jszip/-/jszip-3.4.1.tgz", + "integrity": "sha512-TezXjmf3lj+zQ651r6hPqvSScqBLvyPI9FxdXBqpEwBijNGQ2NXpaFW/7joGzveYkKQUil7iiDHLo6LV71Pc0A==", + "deprecated": "This is a stub types definition. jszip provides its own type definitions, so you do not need this installed.", + "license": "MIT", + "dependencies": { + "jszip": "*" + } + }, "node_modules/@types/node": { "version": "25.0.3", "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.3.tgz", diff --git a/frontends/nextjs/prisma.config.ts b/frontends/nextjs/prisma.config.ts index 068f201c0..d8438941b 100644 --- a/frontends/nextjs/prisma.config.ts +++ b/frontends/nextjs/prisma.config.ts @@ -1,22 +1,21 @@ /** - * Prisma Configuration + * Prisma v7 Configuration * - * This file replaces the deprecated package.json#prisma configuration. + * In Prisma v7, the datasource url is no longer in schema.prisma. + * It must be configured here instead. + * * See: https://www.prisma.io/docs/orm/reference/prisma-config-reference */ import { defineConfig } from 'prisma/config' +import path from 'node:path' export default defineConfig({ // Schema is in the repo root prisma/ directory - schema: '../../prisma/schema.prisma', - - migrations: { - path: '../../prisma/migrations', - }, - + schema: path.resolve(__dirname, '../../prisma/schema.prisma'), + datasource: { - // Use process.env directly to avoid errors when DATABASE_URL is not set - // (e.g., during `prisma generate` in CI where DB isn't needed) - url: process.env.DATABASE_URL ?? 'file:./dev.db', + // Use process.env directly with fallback for CI/CD environments where + // prisma generate doesn't need a real database connection + url: process.env.DATABASE_URL || 'file:./dev.db', }, })