17 lines
328 B
JavaScript
17 lines
328 B
JavaScript
import { config } from 'dotenv';
|
|
|
|
// Load .env then override with .env.local for Next.js compatibility
|
|
config();
|
|
config({ path: '.env.local', override: true });
|
|
|
|
/**
|
|
* Prisma 7 Configuration
|
|
*/
|
|
export default {
|
|
datasource: {
|
|
url: process.env.DATABASE_URL,
|
|
},
|
|
migrations: {
|
|
seed: 'npx tsx prisma/seed.ts',
|
|
},
|
|
}; |