- Replace hand-written node:sqlite queries with a Prisma client using the better-sqlite3 driver adapter - Version the schema with migrations: baseline table, timestamp normalisation, and WAL journal mode - Store timestamps with an explicit UTC offset so they stop being parsed as local time - Show created/updated times on the edit page, formatted with dayjs - Move the root redirect into next.config to avoid a prerender error - Run migrations from the container entrypoint before starting the server BREAKING CHANGE: DNSMASQ_ADMIN_DB_PATH is replaced by DATABASE_URL, which must be a Prisma connection URL (file:./data/dnsmasq-admin.db). Existing database files are migrated in place and need no conversion.
36 lines
871 B
JSON
36 lines
871 B
JSON
{
|
|
"name": "dnsmasq-admin",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "prisma generate && next dev",
|
|
"build": "prisma generate && next build",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"db:generate": "prisma generate",
|
|
"db:migrate": "prisma migrate deploy"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/adapter-better-sqlite3": "7.10.0",
|
|
"@prisma/client": "^7.10.0",
|
|
"dayjs": "^1.11.23",
|
|
"next": "16.4.0",
|
|
"react": "19.3.0",
|
|
"react-dom": "19.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/turbopack": "^4",
|
|
"@types/node": "24",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"dotenv": "^18.0.6",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.4.0",
|
|
"prettier": "^3.9.9",
|
|
"prisma": "7.10.0",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
},
|
|
"packageManager": "pnpm@12.4.1"
|
|
}
|