Skip to content

Commit 826ce31

Browse files
committed
fix
1 parent 30fbc1a commit 826ce31

File tree

570 files changed

+3905
-3872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

570 files changed

+3905
-3872
lines changed

apps/docs/content/docs.v6/(index)/index.mdx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ metaDescription: 'Build data-driven applications with ease using Prisma ORM, add
88

99
## Prisma ORM
1010

11-
[**Prisma ORM**](/v6/orm/overview/introduction/what-is-prisma) is an open-source ORM that provides fast, type-safe access to Postgres, MySQL, SQLite, and more databases.
11+
[**Prisma ORM**](/docs/v6/orm/overview/introduction/what-is-prisma) is an open-source ORM that provides fast, type-safe access to Postgres, MySQL, SQLite, and more databases.
1212

1313
```npm
1414
npx prisma init --db
1515
```
1616

1717
## Prisma Postgres
1818

19-
[**Prisma Postgres**](/v6/postgres) is a fully managed PostgreSQL database that scales to zero, integrates with Prisma ORM and Prisma Studio.
19+
[**Prisma Postgres**](/docs/v6/postgres) is a fully managed PostgreSQL database that scales to zero, integrates with Prisma ORM and Prisma Studio.
2020

2121
```npm
2222
npx create-db
@@ -28,7 +28,7 @@ npx create-db
2828

2929
The fastest way to set up **Prisma ORM** with a ready-to-use **Prisma Postgres** database.
3030

31-
[**Start Quickstart →**](/v6/prisma-orm/quickstart/prisma-postgres)
31+
[**Start Quickstart →**](/docs/v6/prisma-orm/quickstart/prisma-postgres)
3232

3333
---
3434

@@ -38,13 +38,13 @@ Set up Prisma ORM with your existing database:
3838

3939
| Database | Guide |
4040
| ----------- | --------------------------------------------------------------------------- |
41-
| PostgreSQL | [Get started →](/v6/prisma-orm/quickstart/postgresql) |
42-
| MySQL | [Get started →](/v6/prisma-orm/quickstart/mysql) |
43-
| SQL Server | [Get started →](/v6/prisma-orm/quickstart/sql-server) |
44-
| SQLite | [Get started →](/v6/prisma-orm/quickstart/sqlite) |
45-
| MongoDB | [Get started →](/v6/prisma-orm/quickstart/mongodb) |
46-
| PlanetScale | [Get started →](/v6/prisma-orm/quickstart/planetscale) |
47-
| CockroachDB | [Get started →](/v6/prisma-orm/quickstart/cockroachdb) |
41+
| PostgreSQL | [Get started →](/docs/v6/prisma-orm/quickstart/postgresql) |
42+
| MySQL | [Get started →](/docs/v6/prisma-orm/quickstart/mysql) |
43+
| SQL Server | [Get started →](/docs/v6/prisma-orm/quickstart/sql-server) |
44+
| SQLite | [Get started →](/docs/v6/prisma-orm/quickstart/sqlite) |
45+
| MongoDB | [Get started →](/docs/v6/prisma-orm/quickstart/mongodb) |
46+
| PlanetScale | [Get started →](/docs/v6/prisma-orm/quickstart/planetscale) |
47+
| CockroachDB | [Get started →](/docs/v6/prisma-orm/quickstart/cockroachdb) |
4848

4949
---
5050

@@ -54,17 +54,17 @@ Working with a popular framework? You can easily add Prisma to your setup:
5454

5555
| Framework | Guide |
5656
| -------------- | ----------------------------------------------- |
57-
| Next.js | [Get started →](/v6/guides/nextjs) |
58-
| Nuxt.js | [Get started →](/v6/guides/nuxt) |
59-
| Astro | [Get started →](/v6/guides/astro) |
60-
| SvelteKit | [Get started →](/v6/guides/sveltekit) |
61-
| React Router 7 | [Get started →](/v6/guides/react-router-7) |
62-
| TanStack Start | [Get started →](/v6/guides/tanstack-start) |
57+
| Next.js | [Get started →](/docs/v6/guides/nextjs) |
58+
| Nuxt.js | [Get started →](/docs/v6/guides/nuxt) |
59+
| Astro | [Get started →](/docs/v6/guides/astro) |
60+
| SvelteKit | [Get started →](/docs/v6/guides/sveltekit) |
61+
| React Router 7 | [Get started →](/docs/v6/guides/react-router-7) |
62+
| TanStack Start | [Get started →](/docs/v6/guides/tanstack-start) |
6363

6464
---
6565

6666
## Add to Existing Project
6767

6868
Already have a project? Add Prisma ORM to your existing application:
6969

70-
[**Add to Existing Project →**](/v6/prisma-orm/add-to-existing-project/prisma-postgres)
70+
[**Add to Existing Project →**](/docs/v6/prisma-orm/add-to-existing-project/prisma-postgres)

apps/docs/content/docs.v6/(index)/prisma-orm/add-to-existing-project/cockroachdb.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Here's what each package does:
2626

2727
- **`prisma`** - The Prisma CLI for running commands like `prisma init`, `prisma db pull`, and `prisma generate`
2828
- **`@prisma/client`** - The Prisma Client library for querying your database
29-
- **`@prisma/adapter-pg`** - The [`node-postgres` driver adapter](/v6/orm/overview/databases/postgresql#using-the-node-postgres-driver) that connects Prisma Client to your database (CockroachDB is PostgreSQL-compatible)
29+
- **`@prisma/adapter-pg`** - The [`node-postgres` driver adapter](/docs/v6/orm/overview/databases/postgresql#using-the-node-postgres-driver) that connects Prisma Client to your database (CockroachDB is PostgreSQL-compatible)
3030
- **`pg`** - The node-postgres database driver
3131
- **`@types/pg`** - TypeScript type definitions for node-postgres
3232
- **`dotenv`** - Loads environment variables from your `.env` file
3333

3434
## 2. Initialize Prisma ORM
3535

36-
Set up your Prisma ORM project by creating your [Prisma Schema](/v6/orm/prisma-schema/overview) file with the following command:
36+
Set up your Prisma ORM project by creating your [Prisma Schema](/docs/v6/orm/prisma-schema/overview) file with the following command:
3737

3838
```npm
3939
npx prisma init --datasource-provider cockroachdb --output ../generated/prisma
@@ -62,7 +62,7 @@ export default defineConfig({
6262
});
6363
```
6464

65-
The generated schema uses [the ESM-first `prisma-client` generator](/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
65+
The generated schema uses [the ESM-first `prisma-client` generator](/docs/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
6666

6767
```prisma title="prisma/schema.prisma"
6868
generator client {
@@ -83,7 +83,7 @@ Update the `.env` file with your CockroachDB connection URL:
8383
DATABASE_URL="postgresql://user:password@host:26257/mydb?sslmode=require"
8484
```
8585

86-
The [format of the connection URL](/v6/orm/reference/connection-urls) for CockroachDB looks as follows:
86+
The [format of the connection URL](/docs/v6/orm/reference/connection-urls) for CockroachDB looks as follows:
8787

8888
```
8989
postgresql://USER:PASSWORD@HOST:PORT/DATABASE?sslmode=require
@@ -105,7 +105,7 @@ After introspection, your Prisma schema will contain models that represent your
105105

106106
## 5. Baseline your database
107107

108-
To use Prisma Migrate with your existing database, you need to [baseline your database](/v6/orm/prisma-migrate/getting-started).
108+
To use Prisma Migrate with your existing database, you need to [baseline your database](/docs/v6/orm/prisma-migrate/getting-started).
109109

110110
First, create a `migrations` directory:
111111

@@ -229,13 +229,13 @@ This command will:
229229

230230
Explore the options suggested by [CockroachDB](https://www.cockroachlabs.com/blog/cockroachdb-gui-options/) to view and manage your data.
231231

232-
[Prisma Studio](/v6/orm/tools/prisma-studio) does not currently support CockroachDB. Support may be added in a future release. See [Databases supported by Prisma Studio](/v6/orm/tools/prisma-studio#databases-supported-by-prisma-studio) for more information.
232+
[Prisma Studio](/docs/v6/orm/tools/prisma-studio) does not currently support CockroachDB. Support may be added in a future release. See [Databases supported by Prisma Studio](/docs/v6/orm/tools/prisma-studio#databases-supported-by-prisma-studio) for more information.
233233

234234
## Next steps
235235

236236
## More info
237237

238-
- [CockroachDB database connector](/v6/orm/overview/databases/cockroachdb)
239-
- [Prisma Config reference](/v6/orm/reference/prisma-config-reference)
240-
- [Database introspection](/v6/orm/prisma-schema/introspection)
241-
- [Prisma Migrate](/v6/orm/prisma-migrate/getting-started)
238+
- [CockroachDB database connector](/docs/v6/orm/overview/databases/cockroachdb)
239+
- [Prisma Config reference](/docs/v6/orm/reference/prisma-config-reference)
240+
- [Database introspection](/docs/v6/orm/prisma-schema/introspection)
241+
- [Prisma Migrate](/docs/v6/orm/prisma-migrate/getting-started)

apps/docs/content/docs.v6/(index)/prisma-orm/add-to-existing-project/mongodb.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ This guide uses Prisma ORM v6.19 to ensure full compatibility with MongoDB.
1818

1919
:::tip
2020

21-
If you're migrating to Prisma ORM from Mongoose, see our [Migrate from Mongoose guide](/v6/guides/migrate-from-mongoose).
21+
If you're migrating to Prisma ORM from Mongoose, see our [Migrate from Mongoose guide](/docs/v6/guides/migrate-from-mongoose).
2222

2323
:::
2424

2525
## Prerequisites
2626

2727
In order to successfully complete this guide, you need:
2828

29-
- [Node.js](https://nodejs.org/en/) installed on your machine (see [system requirements](/v6/orm/more/upgrades/to-v7#minimum-supported-nodejs--typescript-versions) for officially supported versions)
29+
- [Node.js](https://nodejs.org/en/) installed on your machine (see [system requirements](/docs/v6/orm/more/upgrades/to-v7#minimum-supported-nodejs--typescript-versions) for officially supported versions)
3030
- An existing TypeScript project with a `package.json` file
3131
- Access to a MongoDB 4.2+ server with a replica set deployment. We recommend using [MongoDB Atlas](https://www.mongodb.com/cloud/atlas).
3232

@@ -36,7 +36,7 @@ The MongoDB database connector uses transactions to support nested writes. Trans
3636

3737
:::
3838

39-
Make sure you have your database [connection URL](/v6/orm/reference/connection-urls) (that includes your authentication credentials) at hand!
39+
Make sure you have your database [connection URL](/docs/v6/orm/reference/connection-urls) (that includes your authentication credentials) at hand!
4040

4141
:::note
4242

@@ -72,7 +72,7 @@ You can also install `prisma@6` and `@prisma/client@6` to automatically get the
7272

7373
## 2. Initialize Prisma ORM
7474

75-
Set up your Prisma ORM project by creating your [Prisma Schema](/v6/orm/prisma-schema/overview) file with the following command:
75+
Set up your Prisma ORM project by creating your [Prisma Schema](/docs/v6/orm/prisma-schema/overview) file with the following command:
7676

7777
```npm
7878
npx prisma init --datasource-provider mongodb --output ../generated/prisma
@@ -119,7 +119,7 @@ export default defineConfig({
119119
});
120120
```
121121

122-
The generated schema uses [the ESM-first `prisma-client` generator](/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
122+
The generated schema uses [the ESM-first `prisma-client` generator](/docs/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
123123

124124
```prisma title="prisma/schema.prisma"
125125
generator client {
@@ -311,12 +311,12 @@ MongoDB uses a flexible schema model. Prisma Migrate (which creates migration fi
311311

312312
You can use [MongoDB Atlas](https://www.mongodb.com/cloud/atlas), the MongoDB shell, or MongoDB Compass to view and manage your data.
313313

314-
[Prisma Studio](/v6/orm/tools/prisma-studio) does not currently support MongoDB. Support may be added in a future release. See [Databases supported by Prisma Studio](/v6/orm/tools/prisma-studio#databases-supported-by-prisma-studio) for more information.
314+
[Prisma Studio](/docs/v6/orm/tools/prisma-studio) does not currently support MongoDB. Support may be added in a future release. See [Databases supported by Prisma Studio](/docs/v6/orm/tools/prisma-studio#databases-supported-by-prisma-studio) for more information.
315315

316316
## Next steps
317317

318318
## More info
319319

320-
- [MongoDB database connector](/v6/orm/overview/databases/mongodb)
321-
- [Prisma Config reference](/v6/orm/reference/prisma-config-reference)
322-
- [Database introspection](/v6/orm/prisma-schema/introspection)
320+
- [MongoDB database connector](/docs/v6/orm/overview/databases/mongodb)
321+
- [Prisma Config reference](/docs/v6/orm/reference/prisma-config-reference)
322+
- [Database introspection](/docs/v6/orm/prisma-schema/introspection)

apps/docs/content/docs.v6/(index)/prisma-orm/add-to-existing-project/mysql.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Here's what each package does:
3131

3232
## 2. Initialize Prisma ORM
3333

34-
Set up your Prisma ORM project by creating your [Prisma Schema](/v6/orm/prisma-schema/overview) file with the following command:
34+
Set up your Prisma ORM project by creating your [Prisma Schema](/docs/v6/orm/prisma-schema/overview) file with the following command:
3535

3636
```npm
3737
npx prisma init --datasource-provider mysql --output ../generated/prisma
@@ -60,7 +60,7 @@ export default defineConfig({
6060
});
6161
```
6262

63-
The generated schema uses [the ESM-first `prisma-client` generator](/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
63+
The generated schema uses [the ESM-first `prisma-client` generator](/docs/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
6464

6565
```prisma title="prisma/schema.prisma"
6666
generator client {
@@ -109,7 +109,7 @@ After introspection, your Prisma schema will contain models that represent your
109109

110110
## 5. Baseline your database
111111

112-
To use Prisma Migrate with your existing database, you need to [baseline your database](/v6/orm/prisma-migrate/getting-started).
112+
To use Prisma Migrate with your existing database, you need to [baseline your database](/docs/v6/orm/prisma-migrate/getting-started).
113113

114114
First, create a `migrations` directory:
115115

@@ -239,7 +239,7 @@ This command will:
239239

240240
## More info
241241

242-
- [MySQL database connector](/v6/orm/overview/databases/mysql)
243-
- [Prisma Config reference](/v6/orm/reference/prisma-config-reference)
244-
- [Database introspection](/v6/orm/prisma-schema/introspection)
245-
- [Prisma Migrate](/v6/orm/prisma-migrate/getting-started)
242+
- [MySQL database connector](/docs/v6/orm/overview/databases/mysql)
243+
- [Prisma Config reference](/docs/v6/orm/reference/prisma-config-reference)
244+
- [Database introspection](/docs/v6/orm/prisma-schema/introspection)
245+
- [Prisma Migrate](/docs/v6/orm/prisma-migrate/getting-started)

apps/docs/content/docs.v6/(index)/prisma-orm/add-to-existing-project/planetscale.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metaDescription: Add Prisma ORM to an existing TypeScript project with PlanetSca
1010

1111
:::note
1212

13-
PlanetScale also offers PostgreSQL databases. If you're using **PlanetScale PostgreSQL**, follow the [Add to existing PostgreSQL project guide](/v6/prisma-orm/add-to-existing-project/postgresql) instead.
13+
PlanetScale also offers PostgreSQL databases. If you're using **PlanetScale PostgreSQL**, follow the [Add to existing PostgreSQL project guide](/docs/v6/prisma-orm/add-to-existing-project/postgresql) instead.
1414

1515
:::
1616

@@ -38,7 +38,7 @@ Here's what each package does:
3838

3939
## 2. Initialize Prisma ORM
4040

41-
Set up your Prisma ORM project by creating your [Prisma Schema](/v6/orm/prisma-schema/overview) file with the following command:
41+
Set up your Prisma ORM project by creating your [Prisma Schema](/docs/v6/orm/prisma-schema/overview) file with the following command:
4242

4343
```npm
4444
npx prisma init --datasource-provider mysql --output ../generated/prisma
@@ -67,7 +67,7 @@ export default defineConfig({
6767
});
6868
```
6969

70-
The generated schema uses [the ESM-first `prisma-client` generator](/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
70+
The generated schema uses [the ESM-first `prisma-client` generator](/docs/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
7171

7272
```prisma title="prisma/schema.prisma"
7373
generator client {
@@ -217,7 +217,7 @@ For production deployments, use PlanetScale's [branching workflow](https://plane
217217

218218
## More info
219219

220-
- [PlanetScale database connector](/v6/orm/overview/databases/planetscale)
221-
- [Prisma Config reference](/v6/orm/reference/prisma-config-reference)
222-
- [Database introspection](/v6/orm/prisma-schema/introspection)
220+
- [PlanetScale database connector](/docs/v6/orm/overview/databases/planetscale)
221+
- [Prisma Config reference](/docs/v6/orm/reference/prisma-config-reference)
222+
- [Database introspection](/docs/v6/orm/prisma-schema/introspection)
223223
- [PlanetScale branching workflow](https://planetscale.com/docs/concepts/branching)

apps/docs/content/docs.v6/(index)/prisma-orm/add-to-existing-project/postgresql.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Here's what each package does:
2626

2727
- **`prisma`** - The Prisma CLI for running commands like `prisma init`, `prisma db pull`, and `prisma generate`
2828
- **`@prisma/client`** - The Prisma Client library for querying your database
29-
- **`@prisma/adapter-pg`** - The [`node-postgres` driver adapter](/v6/orm/overview/databases/postgresql#using-the-node-postgres-driver) that connects Prisma Client to your database
29+
- **`@prisma/adapter-pg`** - The [`node-postgres` driver adapter](/docs/v6/orm/overview/databases/postgresql#using-the-node-postgres-driver) that connects Prisma Client to your database
3030
- **`pg`** - The node-postgres database driver
3131
- **`@types/pg`** - TypeScript type definitions for node-postgres
3232
- **`dotenv`** - Loads environment variables from your `.env` file
3333

3434
## 2. Initialize Prisma ORM
3535

36-
Set up your Prisma ORM project by creating your [Prisma Schema](/v6/orm/prisma-schema/overview) file with the following command:
36+
Set up your Prisma ORM project by creating your [Prisma Schema](/docs/v6/orm/prisma-schema/overview) file with the following command:
3737

3838
```npm
3939
npx prisma init --datasource-provider postgresql --output ../generated/prisma
@@ -62,7 +62,7 @@ export default defineConfig({
6262
});
6363
```
6464

65-
The generated schema uses [the ESM-first `prisma-client` generator](/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
65+
The generated schema uses [the ESM-first `prisma-client` generator](/docs/v6/orm/prisma-schema/overview/generators#prisma-client) with a custom output path:
6666

6767
```prisma title="prisma/schema.prisma"
6868
generator client {
@@ -83,7 +83,7 @@ Update the `.env` file with your PostgreSQL connection URL:
8383
DATABASE_URL="postgresql://user:password@localhost:5432/mydb?schema=public"
8484
```
8585

86-
The [format of the connection URL](/v6/orm/reference/connection-urls) for PostgreSQL looks as follows:
86+
The [format of the connection URL](/docs/v6/orm/reference/connection-urls) for PostgreSQL looks as follows:
8787

8888
```
8989
postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=SCHEMA
@@ -105,7 +105,7 @@ After introspection, your Prisma schema will contain models that represent your
105105

106106
## 5. Baseline your database
107107

108-
To use Prisma Migrate with your existing database, you need to [baseline your database](/v6/orm/prisma-migrate/getting-started).
108+
To use Prisma Migrate with your existing database, you need to [baseline your database](/docs/v6/orm/prisma-migrate/getting-started).
109109

110110
First, create a `migrations` directory:
111111

@@ -231,7 +231,7 @@ This command will:
231231

232232
## More info
233233

234-
- [PostgreSQL database connector](/v6/orm/overview/databases/postgresql)
235-
- [Prisma Config reference](/v6/orm/reference/prisma-config-reference)
236-
- [Database introspection](/v6/orm/prisma-schema/introspection)
237-
- [Prisma Migrate](/v6/orm/prisma-migrate/getting-started)
234+
- [PostgreSQL database connector](/docs/v6/orm/overview/databases/postgresql)
235+
- [Prisma Config reference](/docs/v6/orm/reference/prisma-config-reference)
236+
- [Database introspection](/docs/v6/orm/prisma-schema/introspection)
237+
- [Prisma Migrate](/docs/v6/orm/prisma-migrate/getting-started)

0 commit comments

Comments
 (0)