Skip to content

Commit

Permalink
fix #1 add server suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
rrd108 committed Mar 7, 2024
1 parent 5978929 commit 367914d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions src/runtime/composables/usePrismaClient.server.ts
@@ -0,0 +1,8 @@
//import { useNuxtApp } from "#imports";
import { useNuxtApp } from "#app";

export const usePrismaClient = () => {
const { $prisma } = useNuxtApp();
console.log({ $prisma });
return { $prisma };
};
7 changes: 0 additions & 7 deletions src/runtime/composables/usePrismaClient.ts

This file was deleted.

0 comments on commit 367914d

Please sign in to comment.