Files
metabuilder/dbal/development/prisma.config.ts
T
git c9c1003cf9 Implement front page bootstrap without hacks
- Generate Prisma schema from YAML with codegen:prisma
- Add prisma.config.ts for Prisma 7 compatibility
- Push database schema creating SQLite dev.db
- Implement seedDatabase() function to load seed YAML and populate PageConfig
- Install yaml dependency for seed parsing
- Update page.tsx to use getDBALClient() instead of legacy getAdapter()
- Create /api/bootstrap route for one-time database initialization
- Update related files to use getDBALClient (layout.tsx, transfer-super-god-power.ts)

The front page now:
1. Queries PageConfig table for path='/'
2. Falls back to InstalledPackage defaultRoute if needed
3. Renders JSON components from database

Remaining work: Legacy admin/utility files still need refactoring to use new DBAL API.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-16 05:21:47 +00:00

13 lines
264 B
TypeScript

import 'dotenv/config'
import { defineConfig, env } from 'prisma/config'
export default defineConfig({
schema: '../shared/prisma/schema.prisma',
migrations: {
path: '../shared/prisma/migrations',
},
datasource: {
url: env('DATABASE_URL'),
},
})