1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2024-11-21 18:16:33 +02:00

fix: have primsa use default env value

This commit is contained in:
Bart Huijgen 2022-11-22 17:56:46 +01:00
parent d5f0110602
commit 60f0001d32

View File

@ -1,12 +1,7 @@
import { PrismaClient } from "@prisma/client";
import { getEnv } from "../env.util";
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const url = getEnv("DATABASE_URL")!;
export const prisma = new PrismaClient({
log: ["warn", "error"],
datasources: { db: { url } },
});
export const init = async () => {