Skip to content

Commit ff6e605

Browse files
committed
correct links
1 parent 2a11e2d commit ff6e605

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

content/200-orm/200-prisma-client/100-queries/100-query-optimization-performance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function getUsers() {
9393
}
9494
```
9595

96-
For serverless development environments with frameworks that use HMR (Hot Module Replacement), ensure you properly handle a [single instance of Prisma in development](/orm/more/help-and-troubleshooting/help-articles/nextjs-prisma-client-dev-practices).
96+
For serverless development environments with frameworks that use HMR (Hot Module Replacement), ensure you properly handle a [single instance of Prisma in development](/orm/more/help-and-troubleshooting/nextjs-help#best-practices-for-using-prisma-client-in-development).
9797

9898
## Solving the n+1 problem
9999

content/200-orm/200-prisma-client/500-deployment/400-module-bundlers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ To do so, you can use plugins that let you copy over static assets:
1515
| Bundler | Plugin |
1616
| :---------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- |
1717
| Webpack | [`copy-webpack-plugin`](https://github.com/webpack-contrib/copy-webpack-plugin#copy-webpack-plugin) |
18-
| Webpack (with [Next.js monorepo](/orm/more/help-and-troubleshooting/help-articles/nextjs-prisma-client-monorepo)) | [`nextjs-monorepo-workaround-plugin`](https://www.npmjs.com/package/@prisma/nextjs-monorepo-workaround-plugin) |
18+
| Webpack (with [Next.js monorepo](/orm/more/help-and-troubleshooting/nextjs-help#setting-up-prisma-orm-in-a-monorepo)) | [`nextjs-monorepo-workaround-plugin`](https://www.npmjs.com/package/@prisma/nextjs-monorepo-workaround-plugin) |
1919
| Parcel | [`parcel-plugin-static-files-copy`](https://github.com/elwin013/parcel-plugin-static-files-copy#readme) |

content/200-orm/300-prisma-migrate/200-understanding-prisma-migrate/600-legacy-migrate.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ The following table shows which SQL operations are currently supported by legacy
197197
| Create indexes | `CREATE INDEX` | ✔️ |
198198
| Cascading deletes | `ON DELETE` | No (workaround: manually add in SQL and introspect) |
199199
| Cascading updates | `ON UPDATE` | No |
200-
| Data validation | `CHECK` | No ([workaround](/orm/more/help-and-troubleshooting/help-articles/check-constraints)) |
200+
| Data validation | `CHECK` | No ([workaround](/orm/more/help-and-troubleshooting/check-constraints)) |
201201

202202
Note that this table assumes that the operation is also supported by the underlying database. For example, `ENUM` is not supported in SQLite. This means that you also can't use `enum` when using legacy Prisma Migrate.
203203

content/200-orm/500-reference/050-prisma-client-reference.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,7 +3502,7 @@ const result = await prisma.user.update({
35023502
<Admonition type="info">
35033503

35043504
- From version 4.3.0, you can also use these operators to compare _fields_ in the same model [with the `<model>.fields` property](#compare-columns-in-the-same-table).
3505-
- In versions before 4.3.0, you can compare fields in the same model [with raw queries](/orm/more/help-and-troubleshooting/help-articles/comparing-columns-through-raw-queries).
3505+
- In versions before 4.3.0, you can compare fields in the same model [with raw queries](/orm/more/help-and-troubleshooting/comparing-columns-through-raw-queries).
35063506

35073507
</Admonition>
35083508

@@ -5525,7 +5525,7 @@ This feature was moved to general availability in version 5.0.0 and was availabl
55255525

55265526
<Admonition type="info">
55275527

5528-
In the following situations, you must [use raw queries to compare columns in the same table](/orm/more/help-and-troubleshooting/help-articles/comparing-columns-through-raw-queries):
5528+
In the following situations, you must [use raw queries to compare columns in the same table](/orm/more/help-and-troubleshooting/comparing-columns-through-raw-queries):
55295529

55305530
- If you use a version earlier than 4.3.0
55315531
- If you want to use a unique filter, such as [`findUnique`](#findunique) or [`findUniqueOrThrow`](#finduniqueorthrow)

content/200-orm/800-more/600-help-and-troubleshooting/400-nextjs-help.mdx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: "Comprehensive Guide to Using Prisma with Next.js"
3-
description: "Learn best practices, monorepo strategies, and dynamic usage techniques for Prisma in Next.js applications."
2+
title: "Comprehensive Guide to Using Prisma ORM with Next.js"
3+
sidebar_label: "Using Prisma ORM with Next.js"
4+
description: "Learn best practices, monorepo strategies, and dynamic usage techniques for Prisma ORM in Next.js applications."
45
tags:
56
- Prisma
67
- Next.js
@@ -10,7 +11,7 @@ tags:
1011
- Best Practices
1112
---
1213

13-
Prisma and Next.js form a powerful combination for building modern, server-side rendered, and API-driven web applications. This guide consolidates various tips and strategies to help you maximize their potential. Whether you’re looking for best practices, monorepo setup guidance, or strategies for dynamic usage, we’ve got you covered.
14+
Prisma ORM and Next.js form a powerful combination for building modern, server-side rendered, and API-driven web applications. This guide consolidates various tips and strategies to help you maximize their potential. Whether you’re looking for best practices, monorepo setup guidance, or strategies for dynamic usage, we’ve got you covered.
1415

1516
---
1617

@@ -44,21 +45,21 @@ Using this approach ensures that only one instance of Prisma Client exists, even
4445

4546
---
4647

47-
## Setting Up Prisma in a Monorepo
48+
## Setting Up Prisma ORM in a Monorepo
4849

49-
### Challenges of Using Prisma in Monorepos
50+
### Challenges of Using Prisma ORM in Monorepos
5051

51-
Monorepos allow multiple projects to share code and dependencies, making them a popular choice for modern development. However, using Prisma in a monorepo can present challenges related to dependency resolution and schema management.
52+
Monorepos allow multiple projects to share code and dependencies, making them a popular choice for modern development. However, using Prisma ORM in a monorepo can present challenges related to dependency resolution and schema management.
5253

5354
#### Key Issues
5455

55-
1. **Dependency Resolution**: Multiple packages in a monorepo might lead to conflicts if they use different Prisma versions.
56-
2. **Schema Centralization**: Managing a single Prisma schema across multiple projects can be complex.
56+
1. **Dependency Resolution**: Multiple packages in a monorepo might lead to conflicts if they use different version of Prisma ORM.
57+
2. **Schema Centralization**: Managing a single Prisma Schema across multiple projects can be complex.
5758

5859
#### Best Practices for Monorepo Integration
5960

6061
- **Centralize the Prisma Schema**: Place the `schema.prisma` file in a shared package, such as `@myorg/db`, to ensure consistency.
61-
- **Install Dependencies in the Root**: Avoid version conflicts by installing Prisma dependencies at the root of the monorepo.
62+
- **Install Dependencies in the Root**: Avoid version conflicts by installing Prisma ORM as a dependency at the root of the monorepo.
6263
- **Use NPM Scripts for Generation**:
6364

6465
```json
@@ -69,15 +70,15 @@ Monorepos allow multiple projects to share code and dependencies, making them a
6970
}
7071
```
7172

72-
This approach keeps your Prisma schema and generated client in sync across all projects in the monorepo.
73+
This approach keeps your Prisma Schema and generated client in sync across all projects in the monorepo.
7374

7475
---
7576

7677
## Dynamic Usage of Prisma Client in Next.js
7778

7879
### Handling Dynamic Scenarios
7980

80-
Dynamic use cases, such as working with tenant-specific databases, require additional consideration when using Prisma with Next.js.
81+
Dynamic use cases, such as working with tenant-specific databases, require additional consideration when using Prisma ORM with Next.js.
8182

8283
#### Problem
8384

content/200-orm/800-more/600-help-and-troubleshooting/900-prisma-nuxt-module.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This module provides several features to streamline the setup and usage of Prism
3434
<br />
3535
:::warning
3636

37-
If you're using `pnpm`, make sure to hoist Prisma dependencies. Follow the steps [here](/orm/more/help-and-troubleshooting/help-articles/prisma-nuxt-module#prisma-studio-not-opening-with-pnpm) for detailed instructions.
37+
If you're using `pnpm`, make sure to hoist Prisma dependencies. Follow the [Prisma studio steps](#prisma-studio-not-opening-with-pnpm) for detailed instructions.
3838

3939
:::
4040

0 commit comments

Comments
 (0)