diff --git a/apps/docs/content/docs/guides/integrations/supabase-accelerate.mdx b/apps/docs/content/docs/guides/integrations/supabase-accelerate.mdx index 570a3cdd0f..e5af0325d0 100644 --- a/apps/docs/content/docs/guides/integrations/supabase-accelerate.mdx +++ b/apps/docs/content/docs/guides/integrations/supabase-accelerate.mdx @@ -13,6 +13,8 @@ This guides teaches you how to add connection pooling to a PostgreSQL database h Prisma Accelerate is a robust and mature connection pooler enabling your database to function properly during traffic spikes and high load scenarios. Check out this [video](https://www.youtube.com/watch?v=cnL75if6Aq0) demonstrating how it performs in a load test or [learn why connection pooling is important](https://www.prisma.io/blog/saving-black-friday-with-connection-pooling). + + ## Prerequisites To successfully complete this guide, you need **a connection string for a PostgreSQL instance hosted on Supabase**. It typically looks similar to this: diff --git a/apps/docs/content/docs/guides/runtimes/bun.mdx b/apps/docs/content/docs/guides/runtimes/bun.mdx index 04ae993e67..1ae7b416dc 100644 --- a/apps/docs/content/docs/guides/runtimes/bun.mdx +++ b/apps/docs/content/docs/guides/runtimes/bun.mdx @@ -11,6 +11,8 @@ metaDescription: Learn how to use Prisma ORM in a Bun application with Prisma Po [Bun](https://bun.sh) is a fast JavaScript runtime that includes a bundler, test runner, and package manager. In this guide, you will set up a Bun project with Prisma ORM and a Prisma Postgres database. You will create a simple HTTP server and build a Bun executable for deployment. + + ## Prerequisites - [Bun](https://bun.sh/docs/installation) installed in your system diff --git a/apps/docs/content/docs/guides/runtimes/deno.mdx b/apps/docs/content/docs/guides/runtimes/deno.mdx index 2bd6bff560..4512377aa6 100644 --- a/apps/docs/content/docs/guides/runtimes/deno.mdx +++ b/apps/docs/content/docs/guides/runtimes/deno.mdx @@ -10,6 +10,8 @@ metaDescription: Learn how to use Prisma ORM in a Deno application with Prisma P [Deno](https://deno.com) is a secure JavaScript and TypeScript runtime built on V8 with built-in TypeScript support, a permissions system, and web-standard APIs. In this guide, you will set up a Deno project with Prisma ORM and a Prisma Postgres database. You will create a simple HTTP server that reads from the database and returns the results. + + ## Prerequisites - [Deno](https://docs.deno.com/runtime/#install-deno) v2.0 or later installed on your system diff --git a/apps/docs/content/docs/orm/prisma-migrate/workflows/seeding.mdx b/apps/docs/content/docs/orm/prisma-migrate/workflows/seeding.mdx index c905e4a070..c3c5767980 100644 --- a/apps/docs/content/docs/orm/prisma-migrate/workflows/seeding.mdx +++ b/apps/docs/content/docs/orm/prisma-migrate/workflows/seeding.mdx @@ -11,6 +11,12 @@ Seeding allows you to consistently re-create the same data in your database and - Populate your database with data that is required for your application to start, such as a default language or currency. - Provide basic data for validating and using your application in a development environment. This is particularly useful if you are using Prisma Migrate, which sometimes requires resetting your development database. + + + + + + ## How to seed your database in Prisma ORM Prisma ORM's integrated seeding functionality expects a command in the `"seed"` key in the `migrations` object of your `prisma.config.ts`. This can be any command, `prisma db seed` will just execute it. In this guide and as a default, we recommend writing a seed script inside your project's `prisma/` folder and starting it with the command. diff --git a/apps/docs/content/docs/orm/prisma-schema/overview/location.mdx b/apps/docs/content/docs/orm/prisma-schema/overview/location.mdx index a0a2fcd0c7..594b69e861 100644 --- a/apps/docs/content/docs/orm/prisma-schema/overview/location.mdx +++ b/apps/docs/content/docs/orm/prisma-schema/overview/location.mdx @@ -48,6 +48,15 @@ Run prisma generate to generate Prisma Client. ## Multi-file Prisma schema + + + + + + If you prefer splitting your Prisma schema into multiple files, you can have a setup that looks as follows: ``` @@ -60,7 +69,6 @@ prisma/ └── schema.prisma ``` - ### Usage When using a multi-file Prisma schema, you must always explicitly specify the location of the directory that contains your schema files (including the main `schema.prisma` file with your `generator` block). diff --git a/apps/docs/cspell.json b/apps/docs/cspell.json index a59bff004b..2d83e6763b 100644 --- a/apps/docs/cspell.json +++ b/apps/docs/cspell.json @@ -323,5 +323,12 @@ "yourdb", "Zenstack" ], + "patterns": [ + { + "name": "mdxVideoIdAttribute", + "pattern": "/videoId=\"[A-Za-z0-9_-]{6,}\"/g" + } + ], + "ignoreRegExpList": ["mdxVideoIdAttribute"], "ignorePaths": [] } diff --git a/apps/docs/package.json b/apps/docs/package.json index 9fb809b15c..5d55fef0ae 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -15,7 +15,7 @@ "lint:external-links": "tsx ./scripts/lint-external-links.ts", "lint:images": "tsx ./scripts/lint-images.ts", "lint:code": "tsx ./scripts/lint-code-blocks.ts", - "lint:spellcheck": "cspell \"content/docs/**/*.mdx\" \"content/docs/**/*.json\"" + "lint:spellcheck": "cspell \"content/docs/**/*.mdx\" \"content/docs/**/*.json\" --show-context" }, "dependencies": { "@base-ui/react": "catalog:", diff --git a/apps/docs/src/components/youtube.tsx b/apps/docs/src/components/youtube.tsx new file mode 100644 index 0000000000..2dfe027053 --- /dev/null +++ b/apps/docs/src/components/youtube.tsx @@ -0,0 +1,19 @@ +type YoutubeProps = { + videoId: string; + title?: string; +}; + +export const Youtube = ({ videoId, title = "YouTube video player" }: YoutubeProps) => { + return ( +