Skip to content

Commit 9f122b0

Browse files
authored
Merge branch 'main' into refine-neon-docs
2 parents c58c092 + e500af5 commit 9f122b0

File tree

6 files changed

+214
-92
lines changed

6 files changed

+214
-92
lines changed

content/700-optimize/200-getting-started.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Prisma Optimize is intended for use in local environments. Learn more in the [FA
2323
## 1. Launch Optimize
2424

2525
1. Log in to your [Prisma Data Platform account](https://console.prisma.io/optimize?utm_source=docs&utm_medium=optimize-page).
26-
2. <a href="/platform/about#accessing-the-optimize-dashboard" target="_blank">Follow the instructions</a> to access and launch Prisma Optimize.
26+
2. <a href="/docs/platform/about#accessing-the-optimize-dashboard" target="_blank">Follow the instructions</a> to access and launch Prisma Optimize.
2727

2828
## 2. Add Optimize to your application
2929

@@ -54,7 +54,7 @@ npm install @prisma/client@latest @prisma/extension-optimize
5454

5555
### 2.3. Add the Optimize API Key to your `.env` file
5656

57-
<a href="/platform/about#generating-an-optimize-api-key" target="_blank">Generate a Prisma Optimize API key</a> and add it to your `.env` file:
57+
<a href="/docs/platform/about#generating-an-optimize-api-key" target="_blank">Generate a Prisma Optimize API key</a> and add it to your `.env` file:
5858

5959
```bash
6060
OPTIMIZE_API_KEY="YOUR_OPTIMIZE_API_KEY"
@@ -69,7 +69,7 @@ import { PrismaClient } from "@prisma/client";
6969
import { withOptimize } from "@prisma/extension-optimize";
7070

7171
const prisma = new PrismaClient().$extends(
72-
withOptimize({ token: process.env.OPTIMIZE_API_KEY }),
72+
withOptimize({ apiKey: process.env.OPTIMIZE_API_KEY }),
7373
);
7474
```
7575

content/700-optimize/700-known-limitations.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ When using the [Optimize client extension](https://www.npmjs.com/package/@prisma
3434
const prisma = new PrismaClient()
3535
.$extends(
3636
withOptimize({
37-
token: process.env.OPTIMIZE_API_KEY,
37+
apiKey: process.env.OPTIMIZE_API_KEY,
3838
}),
3939
)
4040
.$extends(withAccelerate());
@@ -50,4 +50,4 @@ Raw queries are visible in MongoDB, though the parameters passed to them are not
5050

5151
## Driver adapter compatibility
5252

53-
Prisma Optimize is not yet compatible with [driver adapters](/orm/overview/databases/database-drivers#driver-adapters). However, as a workaround, you can run your queries locally using the regular Prisma Client along with Prisma Optimize to inspect and improve query performance.
53+
Prisma Optimize is not yet compatible with [driver adapters](/orm/overview/databases/database-drivers#driver-adapters). However, as a workaround, you can run your queries locally using the regular Prisma Client along with Prisma Optimize to inspect and improve query performance.

src/css/all.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,10 +761,14 @@
761761
content: "\e473";
762762
}
763763

764-
.fa-magnifying-glass-chart:before {
764+
.fa-magnifying-glass-chart::before {
765765
content: "\e522";
766766
}
767767

768+
.fa-message-bot::before {
769+
content: "\e3b8";
770+
}
771+
768772
.fa-chevron-down::before {
769773
content: "\f078";
770774
}

src/data/indexData.ts

Lines changed: 112 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,110 @@
11
export const ProductLinkData = {
22
porm: {
3-
title: "Build with Prisma ORM",
4-
icon: "database",
3+
title: "Start building with Prisma ORM",
4+
//eyebrow: "Build",
55
description:
6-
"Open source Node.js and TypeScript ORM with an intuitive data model, automated migrations, type-safety, and auto-completion.",
6+
"Node.js and TypeScript ORM with an intuitive data model, automated migrations, type-safety, and auto-completion. <br><br>Combine it with <b>Prisma Studio</b> to explore and manipulate your data.",
77
links: [
88
{
9-
url: "/getting-started",
10-
title: "Getting started",
9+
url: "/orm",
10+
title: "ORM",
1111
},
1212
{
13-
url: "https://github.com/prisma/prisma-examples",
14-
title: "Example projects",
15-
external: true,
13+
url: "/orm/tools/prisma-studio",
14+
title: "Studio",
15+
},
16+
],
17+
},
18+
poptimize: {
19+
title: "Optimize your database queries",
20+
//eyebrow: "Fortify",
21+
description: "Use <b>Prisma Optimize</b> to generate insights and get recommendations to improve your database queries, making your application run faster.",
22+
links: [
23+
{
24+
url: "/optimize",
25+
title: "Optimize",
1626
},
1727
],
1828
},
1929
pdp: {
20-
title: "Grow as your app evolves",
21-
icon: "triangle",
30+
title: "Grow and evolve your application",
31+
//eyebrow: "Grow",
2232
description:
23-
"Expand your application capabilities with global database caching, connection pooling, and real-time database subscriptions.",
33+
"Scale your database connections and cache your database results at the edge with <b>Prisma Accelerate</b>. <br><br>Add <b>Prisma Pulse</b> to your app to react to database changes with type-safe model subscriptions.",
2434
links: [
2535
{
2636
url: "/accelerate",
27-
title: "Prisma Accelerate",
37+
title: "Accelerate",
2838
},
2939
{
3040
url: "/pulse",
31-
title: "Prisma Pulse",
41+
title: "Pulse",
3242
},
3343
],
3444
},
3545
};
3646

3747
export const ORMCardLinkData = {
3848
components: {
39-
title: "ORM Components",
49+
title: "ORM Components and Reference",
4050
description: "Learn about the building blocks of Prisma ORM.",
4151
links: [
4252
{
4353
url: "/orm/prisma-schema",
4454
title: "Prisma Schema",
4555
},
4656
{
47-
url: "/orm/tools/prisma-cli",
48-
title: "Prisma CLI",
57+
url: "/orm/reference/prisma-schema-reference",
58+
title: "Schema reference",
4959
},
5060
{
5161
url: "/orm/prisma-client",
5262
title: "Prisma Client",
5363
},
5464
{
55-
url: "/orm/tools/prisma-studio",
56-
title: "Prisma Studio",
65+
url: "/orm/reference/prisma-client-reference",
66+
title: "Client API reference",
67+
},
68+
{
69+
url: "/orm/tools/prisma-cli",
70+
title: "Prisma CLI",
71+
},
72+
{
73+
url: "/orm/reference/prisma-cli-reference",
74+
title: "Prisma CLI reference",
5775
},
5876
{
5977
url: "/orm/prisma-migrate",
6078
title: "Prisma Migrate",
6179
},
80+
{
81+
url: "/orm/reference/error-reference",
82+
title: "Error message reference",
83+
},
6284
],
6385
},
6486

6587
reference: {
66-
title: "Reference",
67-
description: "Understand the usage and API surface of our products.",
88+
title: "Platform Reference",
89+
description: "Understand the usage and API surface of our platform products built on top of Prisma ORM.",
6890
links: [
69-
{
70-
url: "/orm/reference/prisma-client-reference",
71-
title: "Client API reference",
72-
},
73-
{
74-
url: "/orm/reference/prisma-cli-reference",
75-
title: "Prisma CLI reference",
76-
},
77-
{
78-
url: "/orm/reference/prisma-schema-reference",
79-
title: "Schema reference",
80-
},
8191
{
8292
url: "/accelerate/api-reference",
8393
title: "Accelerate API reference",
8494
},
85-
{
86-
url: "/orm/reference/error-reference",
87-
title: "Error message reference",
88-
},
95+
8996
{
9097
url: "/pulse/api-reference",
9198
title: "Pulse API reference",
9299
},
100+
{
101+
url: "/platform",
102+
title: "Platform",
103+
},
104+
{
105+
url: "/platform/platform-cli/commands",
106+
title: "Platform CLI commands",
107+
},
93108
],
94109
},
95110
};
@@ -101,13 +116,6 @@ export const ORMGeneralLinkData = [
101116
url: "/orm/prisma-client/queries/crud",
102117
icon: "fa-solid fa-arrow-right-arrow-left",
103118
},
104-
{
105-
title: `Prisma ORM in your stack`,
106-
description:
107-
"Use Prisma ORM to build a GraphQL or REST API, or as part of a fullstack application.",
108-
url: "/orm/overview/prisma-in-your-stack",
109-
icon: "fa-solid fa-server",
110-
},
111119
{
112120
title: `Adopting Prisma ORM`,
113121
description: "Migrate to Prisma ORM from other ORMs.",
@@ -122,36 +130,78 @@ export const ORMGeneralLinkData = [
122130
icon: "fa-solid fa-book",
123131
},
124132
{
125-
title: `Accelerate`,
126-
description: "Set up connection pooling and global caching in your app with Accelerate.",
127-
url: "/accelerate/getting-started",
128-
icon: "fa-solid fa-bolt",
133+
title: `Platform CLI commands`,
134+
description:
135+
"Learn how to access the Platform using the integrated commands in the Prisma CLI.",
136+
url: "/platform/platform-cli/commands",
137+
icon: "fa-solid fa-terminal",
129138
},
139+
];
140+
141+
export const GeneralLinks_Build = [
130142
{
131-
title: `Pulse`,
132-
description: "React to changes in your database with Pulse.",
133-
url: "/pulse/getting-started",
134-
icon: "fa-solid fa-signal-stream",
143+
title: `CRUD`,
144+
description: "How to perform CRUD operations with your generated Prisma Client API. ",
145+
url: "/orm/prisma-client/queries/crud",
146+
icon: "fa-solid fa-arrow-right-arrow-left",
147+
},
148+
{
149+
title: `Adopting Prisma ORM`,
150+
description: "Migrate to Prisma ORM from other ORMs.",
151+
url: "/orm/more/migrating-to-prisma",
152+
icon: "fa-solid fa-download",
153+
},
154+
{
155+
title: `Deployment guides`,
156+
description:
157+
"Deploy Node.js applications with Prisma Client to platforms like Vercel, AWS Lambda, Netlify and Heroku.",
158+
url: "/orm/prisma-client/deployment",
159+
icon: "fa-solid fa-book",
135160
},
161+
162+
163+
];
164+
165+
export const GeneralLinks_Fortify = [
136166
{
137-
title: `Optimize`,
138-
description: "Debug database queries and use recommendations to improve query performance.",
167+
title: `Set up Optimize`,
168+
description: "Start analyzing your queries and generate insights to improve your queries.",
139169
url: "/optimize/getting-started",
140170
icon: "fa-solid fa-magnifying-glass-chart",
141171
},
142172
{
143-
title: `Platform`,
144-
description:
145-
"Explore how to use the Platform to easily manage your projects and collaborate within your team.",
146-
url: "/platform/about",
173+
title: `Recommendations`,
174+
description: "Explore the different recommendations such as indexing issues, excessive data retrieval, and inefficient query patterns.",
175+
url: "/optimize/recommendations",
147176
icon: "fa-solid fa-chart-simple",
148177
},
149178
{
150-
title: `Platform CLI commands`,
151-
description:
152-
"Learn how to access the Platform using the integrated commands in the Prisma CLI.",
153-
url: "/platform/platform-cli/commands",
154-
icon: "fa-solid fa-terminal",
179+
title: `Prisma AI`,
180+
description: "Understand the recommendations easier by asking our AI follow-up questions.",
181+
url: "/optimize/prisma-ai",
182+
icon: "fa-solid fa-message-bot",
183+
},
184+
];
185+
186+
187+
export const GeneralLinks_Grow = [
188+
{
189+
title: `Connection pooling`,
190+
description: "Adjust pool size, configure timeouts, and enable autoscaling to improve performance.",
191+
url: "/accelerate/connection-pooling",
192+
icon: "fa-solid fa-bolt",
193+
},
194+
{
195+
title: `Database caching`,
196+
description: "How to improve query performance by configuring cache behavior using TTL and SWR.",
197+
url: "/accelerate/caching",
198+
icon: "fa-solid fa-bolt",
199+
},
200+
{
201+
title: `React to database changes`,
202+
description: "Use Pulse to stream database events to your app in real-time. ",
203+
url: "/pulse/getting-started",
204+
icon: "fa-solid fa-signal-stream",
155205
},
156206
];
157207

0 commit comments

Comments
 (0)