13 lines
235 B
TypeScript
13 lines
235 B
TypeScript
|
import { PrismaClient } from '@prisma/client';
|
||
|
|
||
|
const env = require('dotenv').config();
|
||
|
const databaseUrl = process.env.DATABASE_URL;
|
||
|
|
||
|
const prisma = new PrismaClient({
|
||
|
datasources: {
|
||
|
db: {
|
||
|
url: databaseUrl,
|
||
|
}
|
||
|
}
|
||
|
});
|