You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
474 B

import { defineConfig } from '@prisma/config';
import { config } from 'dotenv';
import { expand } from 'dotenv-expand';
import { join } from 'node:path';
expand(config({ quiet: true }));
export default defineConfig({
datasource: {
url: process.env.DIRECT_URL ?? process.env.DATABASE_URL
},
migrations: {
path: join(__dirname, '..', 'prisma', 'migrations'),
seed: 'node prisma/seed.mts'
},
schema: join(__dirname, '..', 'prisma', 'schema.prisma')
});