Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/docs/content/docs/guides/deployment/pnpm-workspaces.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ When prompted by the CLI, enter a descriptive name for your migration.
Once the migration is successful, create a `client.ts` file to initialize Prisma Client with a driver adapter:

```ts title="database/client.ts"
import { PrismaClient } from "./generated/client"; // [!code ++]
import { PrismaClient } from "./generated/client/client"; // [!code ++]
import { PrismaPg } from "@prisma/adapter-pg"; // [!code ++]
// [!code ++]
const adapter = new PrismaPg({
Expand Down Expand Up @@ -234,7 +234,7 @@ Then, create an `index.ts` file to re-export the instance of Prisma Client and a

```ts title="database/index.ts"
export { prisma } from "./client"; // [!code ++]
export * from "./generated/client"; // [!code ++]
export * from "./generated/client/client"; // [!code ++]
```

At this point, your shared database package is fully configured and ready for use across your monorepo.
Expand Down