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:
parent
d5f0110602
commit
60f0001d32
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user