From c415696ce76f849b1e7386bc9b23f98682768c13 Mon Sep 17 00:00:00 2001 From: ArthurGamby Date: Mon, 23 Feb 2026 14:29:54 +0100 Subject: [PATCH 1/2] feat(docs): create and use youtube component & add video links to guide and docs sections --- .../integrations/supabase-accelerate.mdx | 2 ++ .../docs/content/docs/guides/runtimes/bun.mdx | 2 ++ .../content/docs/guides/runtimes/deno.mdx | 2 ++ .../orm/prisma-migrate/workflows/seeding.mdx | 6 ++++++ .../orm/prisma-schema/overview/location.mdx | 10 +++++++++- apps/docs/src/components/youtube.tsx | 19 +++++++++++++++++++ apps/docs/src/mdx-components.tsx | 7 +++---- 7 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 apps/docs/src/components/youtube.tsx 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/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 ( +