- 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]>
5 lines
159 B
TypeScript
5 lines
159 B
TypeScript
import { loadEnvConfig } from "@next/env";
|
|
|
|
// 讓 CLI 腳本與 Next.js 用同一套規則載入 .env、.env.local 等檔案。
|
|
loadEnvConfig(process.cwd());
|