Skip to content

Commit 83013e4

Browse files
committed
docs(): update based on feedback
1 parent 3d11b9f commit 83013e4

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

content/250-postgres/350-integrations/100-netlify.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Ensure that the data source in your `prisma.config.ts` file is configured to use
5151

5252
```typescript
5353
// prisma.config.ts
54+
import 'dotenv/config';
5455
import { defineConfig, env } from '@prisma/config';
5556
export default defineConfig({
5657
datasource: {
@@ -70,13 +71,12 @@ To ensure the generated Prisma Client library is available on your deployed Netl
7071
"scripts": {
7172
// ...
7273
// add-next-line
73-
"postinstall": "prisma generate --no-engine"
74+
"postinstall": "prisma generate"
7475
}
7576
//
7677
}
7778
```
7879

79-
The `--no-engine` flag ensures that the query engine binary is kept out of the generated Prisma Client library. It's not needed when using Prisma Postgres.
8080

8181
## Example: Deploy a Next.js template with Prisma Postgres
8282

@@ -162,7 +162,7 @@ Open the `app/page.jsx` file and replace the entire contents with this code:
162162

163163
```js file=app/page.jsx
164164
import 'dotenv/config';
165-
import { PrismaClient } from '../generated/prisma/client.js';
165+
import { PrismaClient } from '../path/to/generated/prisma/client';
166166
import {PrismaPg} from '@prisma/adapter-pg'
167167

168168
const databaseUrl = process.env.DATABASE_URL;
@@ -218,7 +218,7 @@ As mentioned [above](#generate-prisma-client-in-a-postinstall-script-in-packagej
218218
"start": "next start",
219219
"lint": "next lint",
220220
// add-next-line
221-
"postinstall": "prisma generate --no-engine"
221+
"postinstall": "prisma generate"
222222
},
223223
"dependencies": {
224224
"@netlify/blobs": "^8.1.0",

content/250-postgres/350-integrations/200-vercel.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ npx prisma studio
6969
Ensure that the data source in your `prisma.config.ts` file is configured to use the `DATABASE_URL` environment variable:
7070

7171
```ts
72+
import 'dotenv/config';
7273
import { defineConfig, env } from '@prisma/config';
7374
export default defineConfig({
7475
datasource: {
@@ -88,10 +89,8 @@ To ensure the generated Prisma Client library is available on your deployed Verc
8889
"scripts": {
8990
// ...
9091
// add-next-line
91-
"postinstall": "prisma generate --no-engine"
92+
"postinstall": "prisma generate"
9293
}
9394
//
9495
}
9596
```
96-
97-
The `--no-engine` flag ensures that the query engine binary is kept out of the generated Prisma Client library. It's not needed when using Prisma Postgres.

content/250-postgres/400-query-optimization/100-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ OPTIMIZE_API_KEY="YOUR_OPTIMIZE_API_KEY"
5252
Extend your existing Prisma Client instance with the Optimize extension:
5353

5454
```ts
55-
import { PrismaClient } from '../generated/prisma/client.js';
55+
import { PrismaClient } from '../path/to/generated/prisma/client';
5656
import { withOptimize } from "@prisma/extension-optimize";
5757

5858
const prisma = new PrismaClient().$extends(

0 commit comments

Comments
 (0)