We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594046c commit 30f6241Copy full SHA for 30f6241
petsoft/resources/db.ts
@@ -0,0 +1,15 @@
1
+import { PrismaClient } from "@prisma/client";
2
+
3
+const prismaClientSingleton = () => {
4
+ return new PrismaClient();
5
+};
6
7
+declare global {
8
+ var prisma: undefined | ReturnType<typeof prismaClientSingleton>;
9
+}
10
11
+const prisma = globalThis.prisma ?? prismaClientSingleton();
12
13
+export default prisma;
14
15
+if (process.env.NODE_ENV !== "production") globalThis.prisma = prisma;
petsoft/resources/icon.svg
petsoft/resources/logo.svg
petsoft/resources/pet-image-placeholder.txt
@@ -0,0 +1 @@
+https://bytegrad.com/course-assets/react-nextjs/pet-placeholder.png
0 commit comments