- @prisma/client·prisma 6.19.3 → 7.10.1, @prisma/adapter-better-sqlite3 사용 - 생성 클라이언트를 src/generated/prisma 로 출력하고 저장소에 포함 (build 에서 prisma generate 제거) - datasource URL 은 prisma.config.ts 에서 읽음 - db-url.ts: 상대 file: 경로를 Prisma CLI 와 같이 prisma/ 기준으로 해석 - DateTime 호환을 위해 timestampFormat: unixepoch-ms 지정 - Prisma 7 WASM 쿼리 컴파일러가 필요하므로 standalone 추적 제외 목록에서 wasm 제거 - README: 운영 서버에서 관리자 비밀번호 변경 절차 보강 현재 운영 서버(/srv/yonggong/build)에 배포된 소스와 동일합니다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
442 B
TypeScript
16 lines
442 B
TypeScript
import "dotenv/config";
|
|
import { defineConfig } from "prisma/config";
|
|
|
|
// Prisma 7 loads the datasource URL from the config file, not from schema.prisma.
|
|
// Runtime clients use the same DATABASE_URL through PrismaBetterSqlite3.
|
|
export default defineConfig({
|
|
schema: "prisma/schema.prisma",
|
|
migrations: {
|
|
path: "prisma/migrations",
|
|
seed: "tsx prisma/seed.ts",
|
|
},
|
|
datasource: {
|
|
url: process.env.DATABASE_URL ?? "",
|
|
},
|
|
});
|