- Next.js 16 App Router (TS strict, src/), minimal placeholder page - ESLint (domain/ may not import server/ or next) + Prettier - SQLite via better-sqlite3 + Drizzle: WAL/foreign_keys/busy_timeout, migrations, idempotent seed, withTransaction (BEGIN IMMEDIATE) - Zod-validated env; startup exits on bad config and creates attachments dir - Vitest unit/integration tests with temp-DB helper (12 passing) - Playwright config + home e2e test (not yet verified passing) Tasks 1.1-5.1 done; 5.2, 6.x, 7.x pending. Co-Authored-By: Claude Opus 5.5 <[email protected]>
9 lines
288 B
TypeScript
9 lines
288 B
TypeScript
import { defineConfig } from "drizzle-kit";
|
|
|
|
// 只用於 `npm run db:generate` 產生 migration;套用 migration 由 `npm run db:migrate` 負責。
|
|
export default defineConfig({
|
|
dialect: "sqlite",
|
|
schema: "./src/server/db/schema/index.ts",
|
|
out: "./src/server/db/migrations",
|
|
});
|