- ID: {user.id}
- Name: {user.name || 'N/A'}
- Email: {user.email}
+
+ ID: {user.id}
+
+
+ Name: {user.name || 'N/A'}
+
+
+ Email: {user.email}
+
))
) : (
@@ -212,11 +222,11 @@ As mentioned [above](#generate-prisma-client-in-a-postinstall-script-in-packagej
"start": "next start",
"lint": "next lint",
// add-next-line
- "postinstall": "prisma generate --no-engine"
+ "postinstall": "prisma generate"
},
"dependencies": {
"@netlify/blobs": "^8.1.0",
- "@prisma/client": "^6.3.0",
+ "@prisma/client": "^7.0.0",
"@prisma/extension-accelerate": "^1.2.1",
"blobshape": "^1.0.0",
"bright": "^0.8.5",
@@ -232,7 +242,7 @@ As mentioned [above](#generate-prisma-client-in-a-postinstall-script-in-packagej
"eslint": "8.57.1",
"eslint-config-next": "15.1.6",
"postcss": "^8.4.36",
- "prisma": "^6.3.0",
+ "prisma": "^7.0.0",
"tailwindcss": "^3.4.1"
}
}
@@ -246,4 +256,4 @@ After having completed these steps, find the **Trigger deploy** button and selec
### 5. Validate the deployment
-Open the deployed site by clicking the **Open production deploy** button. You should now see the same UI as you did at the end of step 3 when you were running the app locally.
+Open the deployed site by clicking the **Open production deploy** button. You should now see the same UI as you did at the end of step 3 when you were running the app locally.
\ No newline at end of file
diff --git a/content/250-postgres/350-integrations/200-vercel.mdx b/content/250-postgres/350-integrations/200-vercel.mdx
index 106e5264c2..ba1b4962ba 100644
--- a/content/250-postgres/350-integrations/200-vercel.mdx
+++ b/content/250-postgres/350-integrations/200-vercel.mdx
@@ -6,11 +6,9 @@ tocDepth: 3
toc: true
---
-The [Vercel Marketplace integration for Prisma Postgres](https://www.vercel.com/marketplace/prisma) connects your Vercel projects with Prisma Postgres instances. Once connected, the integration will automatically set the following environment variables on your deployed Vercel app:
+The [Vercel Marketplace integration for Prisma Postgres](https://www.vercel.com/marketplace/prisma) connects your Vercel projects with Prisma Postgres instances. Once connected, the integration will automatically set the following environment variable on your deployed Vercel app:
-`POSTGRES_URL`: The [direct TCP connection URL](/postgres/database/direct-connections) starting with `postgres://...`
-`PRISMA_DATABASE_URL`: The connection URL used by Prisma ORM starting with `prisma+postgres://accelerate.prisma-data.net/?api_key=ey...`
-`DATABASE_URL`: The [direct TCP connection URL](/postgres/database/direct-connections) starting with `postgres://...`
+- `DATABASE_URL`: The [direct TCP connection URL](/postgres/database/direct-connections) starting with `postgres://...`
These enable you to connect to the Prisma Postgres instances via any ORM or database library you want to use (Prisma ORM, Drizzle, Kysely, ...).
@@ -68,18 +66,17 @@ npx prisma studio
### Ensure your project uses the correct environment variable
-Ensure that the data source in your `schema.prisma` file is configured to use the `DATABASE_URL` or `PRISMA_DATABASE_URL` environment variable (depending on which one is being exported in the **Settings** of your Vercel project):
-
-```prisma
-// schema.prisma
-generator client {
- provider = "prisma-client-js"
-}
-
-datasource db {
- provider = "postgresql"
- url = env("DATABASE_URL")
-}
+Ensure that the data source in your `prisma.config.ts` file is configured to use the `DATABASE_URL` environment variable:
+
+```ts
+import 'dotenv/config';
+import { defineConfig, env } from '@prisma/config';
+export default defineConfig({
+ datasource: {
+ url: env('DATABASE_URL'),
+ },
+ schema: './prisma/schema.prisma',
+});
```
### Generate Prisma Client in a `postinstall` script in `package.json`
@@ -92,10 +89,8 @@ To ensure the generated Prisma Client library is available on your deployed Verc
"scripts": {
// ...
// add-next-line
- "postinstall": "prisma generate --no-engine"
+ "postinstall": "prisma generate"
}
//
}
```
-
-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.
diff --git a/content/250-postgres/400-query-optimization/100-setup.mdx b/content/250-postgres/400-query-optimization/100-setup.mdx
index a7a19dd194..314495e553 100644
--- a/content/250-postgres/400-query-optimization/100-setup.mdx
+++ b/content/250-postgres/400-query-optimization/100-setup.mdx
@@ -39,20 +39,6 @@ Run the following command in your terminal to install the necessary dependencies
npm install @prisma/extension-optimize
```
-