Skip to content

Commit

Permalink
chore(_official-blog-tutorial): remove explicit DB connection
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 25, 2023
1 parent 4fa485e commit 31b20bd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions _official-blog-tutorial/app/db.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ import { PrismaClient } from "@prisma/client";
import { singleton } from "./singleton.server";

// Hard-code a unique key, so we can look up the client when this module gets re-imported
const prisma = singleton("prisma", () => new PrismaClient());
prisma.$connect();

export { prisma };
export const prisma = singleton("prisma", () => new PrismaClient());

0 comments on commit 31b20bd

Please sign in to comment.