mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-02 17:55:07 +00:00
c9c1003cf9
- 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>
13 lines
264 B
TypeScript
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'),
|
|
},
|
|
})
|