Files
forgery/prisma.config.ts
T
google-labs-jules[bot] bedf5670a8 Refactor data storage to data/ folder and remove env files
- Consolidate SQLite database and file storage into `data/` directory.
- Update `src/index.ts` to ensure `data` and `data/files` directories exist on startup.
- Update `src/db.ts` to use hardcoded `file:./data/data.db` path.
- Update `prisma.config.ts` to use absolute path to `data/data.db` for CLI compatibility.
- Update `.gitignore` to ignore `data/` directory entirely.
- Remove `.env.example` and `.env.test` as they are no longer needed.
2026-02-15 02:39:31 +00:00

9 lines
193 B
TypeScript

import { defineConfig } from 'prisma/config'
import path from 'node:path'
export default defineConfig({
datasource: {
url: `file:${path.join(process.cwd(), 'data', 'data.db')}`,
},
})