Prisma 7 + better-sqlite3 드라이버 어댑터로 전환
- @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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0f9e18c4df
commit
215bdb6fca
+7
-3
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "prisma generate && next build",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"db:generate": "prisma generate",
|
||||
@@ -18,8 +18,11 @@
|
||||
"seed": "tsx prisma/seed.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "6.19.3",
|
||||
"@prisma/adapter-better-sqlite3": "7.10.1",
|
||||
"@prisma/client": "7.10.1",
|
||||
"bcryptjs": "3.0.3",
|
||||
"better-sqlite3": "^12.6.0",
|
||||
"dotenv": "^18.0.10",
|
||||
"jose": "6.2.13",
|
||||
"lucide-react": "1.61.0",
|
||||
"next": "16.4.3",
|
||||
@@ -35,7 +38,8 @@
|
||||
"@types/node": "26.6.5",
|
||||
"@types/react": "19.3.0",
|
||||
"@types/react-dom": "19.3.0",
|
||||
"prisma": "6.19.3",
|
||||
"@types/better-sqlite3": "^9.6.0",
|
||||
"prisma": "7.10.1",
|
||||
"tailwindcss": "4.3.3",
|
||||
"tsx": "4.23.15",
|
||||
"typescript": "5.9.3"
|
||||
|
||||
Reference in New Issue
Block a user