From 38372e7294791ddeb9f20fcb22217965170913b2 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 22 Apr 2026 14:02:48 -0400 Subject: [PATCH 1/3] feat(docs): swap to frontmatter approach --- apps/docs/source.config.ts | 1 + apps/docs/src/app/(docs)/(default)/[[...slug]]/page.tsx | 1 + apps/docs/src/components/layout/notebook/page/index.tsx | 5 ++++- apps/docs/src/components/toc/tracked-wrapper.tsx | 9 ++++----- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/docs/source.config.ts b/apps/docs/source.config.ts index ad18f0a866..97a49cde15 100644 --- a/apps/docs/source.config.ts +++ b/apps/docs/source.config.ts @@ -45,6 +45,7 @@ export const docs = defineDocs({ metaTitle: z.string(), metaDescription: z.string(), aiPrompt: z.string().optional(), + stepTracking: z.boolean().optional(), }), postprocess: { includeProcessedMarkdown: true, diff --git a/apps/docs/src/app/(docs)/(default)/[[...slug]]/page.tsx b/apps/docs/src/app/(docs)/(default)/[[...slug]]/page.tsx index 07be0ce99e..01b5f71a4d 100644 --- a/apps/docs/src/app/(docs)/(default)/[[...slug]]/page.tsx +++ b/apps/docs/src/app/(docs)/(default)/[[...slug]]/page.tsx @@ -40,6 +40,7 @@ export default async function Page({ params }: { params: Promise }) }} toc={page.data.toc} full={page.data.full} + stepTracking={(page.data as { stepTracking?: boolean }).stepTracking} >
{page.data.title} diff --git a/apps/docs/src/components/layout/notebook/page/index.tsx b/apps/docs/src/components/layout/notebook/page/index.tsx index cfd0b998e5..1fa71506bb 100644 --- a/apps/docs/src/components/layout/notebook/page/index.tsx +++ b/apps/docs/src/components/layout/notebook/page/index.tsx @@ -33,6 +33,7 @@ export interface DocsPageProps { toc?: TOCItemType[]; tableOfContent?: Partial; tableOfContentPopover?: Partial; + stepTracking?: boolean; /** * Extend the page to fill all available space @@ -112,6 +113,7 @@ export function DocsPage({ ...tocOptions } = {}, toc = [], + stepTracking = false, children, className, sidebar: sidebarOpt, @@ -190,9 +192,10 @@ export function DocsPage({ - {/* Use TrackedTOCWrapper to track section views on quickstart pages */} + {/* Track section views for pages that opt in via frontmatter */} {tocOptions.footer} diff --git a/apps/docs/src/components/toc/tracked-wrapper.tsx b/apps/docs/src/components/toc/tracked-wrapper.tsx index b7c896668b..2b8edf8f54 100644 --- a/apps/docs/src/components/toc/tracked-wrapper.tsx +++ b/apps/docs/src/components/toc/tracked-wrapper.tsx @@ -8,12 +8,12 @@ import posthog from "posthog-js"; import * as TocClerk from "./clerk"; import * as TocDefault from "./default"; -const TRACKED_PAGES = [{ id: "quickstart", path: "/prisma-orm/quickstart/" }]; - export function TrackedTOCWrapper({ tocStyle = "default", + stepTracking = false, }: { tocStyle?: "default" | "clerk"; + stepTracking?: boolean; }) { const active = Primitive.useActiveAnchors(); const pathname = usePathname(); @@ -21,8 +21,7 @@ export function TrackedTOCWrapper({ const lastEmittedRef = useRef(""); useOnChange(active, () => { - const match = TRACKED_PAGES.find((p) => pathname.includes(p.path)); - if (!match) return; + if (!stepTracking) return; const anchor = active[0]; if (!anchor) return; @@ -32,7 +31,7 @@ export function TrackedTOCWrapper({ clearTimeout(timeoutRef.current); timeoutRef.current = setTimeout(() => { - posthog.capture(`pageview_${match.id}`, { + posthog.capture("pageview_quickstart", { page: pathname, section: anchor, }); From 035d95a946a84f8e1053e7628167a007920325f7 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 22 Apr 2026 14:03:24 -0400 Subject: [PATCH 2/3] feat(docs): add guides and other pages --- .../(index)/prisma-orm/add-to-existing-project/cockroachdb.mdx | 1 + .../docs/(index)/prisma-orm/add-to-existing-project/mongodb.mdx | 1 + .../docs/(index)/prisma-orm/add-to-existing-project/mysql.mdx | 1 + .../(index)/prisma-orm/add-to-existing-project/planetscale.mdx | 1 + .../(index)/prisma-orm/add-to-existing-project/postgresql.mdx | 1 + .../prisma-orm/add-to-existing-project/prisma-postgres.mdx | 1 + .../(index)/prisma-orm/add-to-existing-project/sql-server.mdx | 1 + .../docs/(index)/prisma-orm/add-to-existing-project/sqlite.mdx | 1 + .../content/docs/(index)/prisma-orm/quickstart/cockroachdb.mdx | 1 + apps/docs/content/docs/(index)/prisma-orm/quickstart/mongodb.mdx | 1 + apps/docs/content/docs/(index)/prisma-orm/quickstart/mysql.mdx | 1 + .../content/docs/(index)/prisma-orm/quickstart/planetscale.mdx | 1 + .../content/docs/(index)/prisma-orm/quickstart/postgresql.mdx | 1 + .../docs/(index)/prisma-orm/quickstart/prisma-postgres.mdx | 1 + .../content/docs/(index)/prisma-orm/quickstart/sql-server.mdx | 1 + apps/docs/content/docs/(index)/prisma-orm/quickstart/sqlite.mdx | 1 + apps/docs/content/docs/(index)/prisma-postgres/from-the-cli.mdx | 1 + .../prisma-postgres/import-from-existing-database-mysql.mdx | 1 + .../prisma-postgres/import-from-existing-database-postgresql.mdx | 1 + .../docs/(index)/prisma-postgres/quickstart/drizzle-orm.mdx | 1 + .../content/docs/(index)/prisma-postgres/quickstart/kysely.mdx | 1 + .../docs/(index)/prisma-postgres/quickstart/prisma-orm.mdx | 1 + .../content/docs/(index)/prisma-postgres/quickstart/typeorm.mdx | 1 + apps/docs/content/docs/guides/authentication/authjs/nextjs.mdx | 1 + .../content/docs/guides/authentication/better-auth/astro.mdx | 1 + .../content/docs/guides/authentication/better-auth/nextjs.mdx | 1 + apps/docs/content/docs/guides/authentication/clerk/astro.mdx | 1 + apps/docs/content/docs/guides/authentication/clerk/nextjs.mdx | 1 + apps/docs/content/docs/guides/database/data-migration.mdx | 1 + apps/docs/content/docs/guides/database/multiple-databases.mdx | 1 + apps/docs/content/docs/guides/database/schema-changes.mdx | 1 + apps/docs/content/docs/guides/deployment/bun-workspaces.mdx | 1 + apps/docs/content/docs/guides/deployment/cloudflare-d1.mdx | 1 + apps/docs/content/docs/guides/deployment/cloudflare-workers.mdx | 1 + apps/docs/content/docs/guides/deployment/docker.mdx | 1 + apps/docs/content/docs/guides/deployment/pnpm-workspaces.mdx | 1 + apps/docs/content/docs/guides/deployment/turborepo.mdx | 1 + apps/docs/content/docs/guides/frameworks/astro.mdx | 1 + apps/docs/content/docs/guides/frameworks/elysia.mdx | 1 + apps/docs/content/docs/guides/frameworks/hono.mdx | 1 + apps/docs/content/docs/guides/frameworks/nestjs.mdx | 1 + apps/docs/content/docs/guides/frameworks/nextjs.mdx | 1 + apps/docs/content/docs/guides/frameworks/nuxt.mdx | 1 + apps/docs/content/docs/guides/frameworks/react-router-7.mdx | 1 + apps/docs/content/docs/guides/frameworks/solid-start.mdx | 1 + apps/docs/content/docs/guides/frameworks/sveltekit.mdx | 1 + apps/docs/content/docs/guides/frameworks/tanstack-start.mdx | 1 + apps/docs/content/docs/guides/index.mdx | 1 + apps/docs/content/docs/guides/integrations/ai-sdk.mdx | 1 + apps/docs/content/docs/guides/integrations/datadog.mdx | 1 + apps/docs/content/docs/guides/integrations/deno.mdx | 1 + apps/docs/content/docs/guides/integrations/embed-studio.mdx | 1 + apps/docs/content/docs/guides/integrations/github-actions.mdx | 1 + apps/docs/content/docs/guides/integrations/neon-accelerate.mdx | 1 + apps/docs/content/docs/guides/integrations/permit-io.mdx | 1 + apps/docs/content/docs/guides/integrations/pgfence.mdx | 1 + apps/docs/content/docs/guides/integrations/shopify.mdx | 1 + .../content/docs/guides/integrations/supabase-accelerate.mdx | 1 + apps/docs/content/docs/guides/integrations/vercel-deployment.mdx | 1 + apps/docs/content/docs/guides/making-guides.mdx | 1 + apps/docs/content/docs/guides/postgres/flyio.mdx | 1 + apps/docs/content/docs/guides/postgres/idx.mdx | 1 + apps/docs/content/docs/guides/postgres/netlify.mdx | 1 + apps/docs/content/docs/guides/postgres/vercel.mdx | 1 + apps/docs/content/docs/guides/postgres/viewing-data.mdx | 1 + apps/docs/content/docs/guides/postgres/vscode.mdx | 1 + apps/docs/content/docs/guides/runtimes/bun.mdx | 1 + apps/docs/content/docs/guides/runtimes/deno.mdx | 1 + .../content/docs/guides/switch-to-prisma-orm/from-drizzle.mdx | 1 + .../content/docs/guides/switch-to-prisma-orm/from-mongoose.mdx | 1 + .../content/docs/guides/switch-to-prisma-orm/from-sql-orms.mdx | 1 + .../content/docs/guides/switch-to-prisma-postgres/from-neon.mdx | 1 + .../docs/guides/switch-to-prisma-postgres/from-supabase.mdx | 1 + apps/docs/content/docs/guides/upgrade-prisma-orm/v1.mdx | 1 + apps/docs/content/docs/guides/upgrade-prisma-orm/v3.mdx | 1 + apps/docs/content/docs/guides/upgrade-prisma-orm/v4.mdx | 1 + apps/docs/content/docs/guides/upgrade-prisma-orm/v5.mdx | 1 + apps/docs/content/docs/guides/upgrade-prisma-orm/v6.mdx | 1 + apps/docs/content/docs/guides/upgrade-prisma-orm/v7.mdx | 1 + 79 files changed, 79 insertions(+) diff --git a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/cockroachdb.mdx b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/cockroachdb.mdx index 30a0cd3f2f..371f627859 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/cockroachdb.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/cockroachdb.mdx @@ -4,6 +4,7 @@ description: 'Add Prisma ORM to an existing TypeScript project with CockroachDB url: /prisma-orm/add-to-existing-project/cockroachdb metaTitle: How to add Prisma ORM to an existing project using CockroachDB (15 min) metaDescription: 'Add Prisma ORM to an existing TypeScript project with CockroachDB and learn database introspection, baselining, and querying.' +stepTracking: true --- [CockroachDB](https://www.cockroachlabs.com/) is a distributed SQL database designed for cloud applications, offering horizontal scalability, strong consistency, and high availability. In this guide, you will learn how to add Prisma ORM to an existing TypeScript project, connect it to CockroachDB, introspect your existing database schema, and start querying with type-safe Prisma Client. diff --git a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mongodb.mdx b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mongodb.mdx index 2a5fc660c0..f53e6e59b0 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mongodb.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mongodb.mdx @@ -4,6 +4,7 @@ description: Add Prisma ORM to an existing TypeScript project with MongoDB and l url: /prisma-orm/add-to-existing-project/mongodb metaTitle: How to add Prisma ORM to an existing project using MongoDB (15 min) metaDescription: Add Prisma ORM to an existing TypeScript project with MongoDB and learn database introspection and querying. +stepTracking: true --- [MongoDB](https://www.mongodb.com/) is a popular document-based NoSQL database known for its flexibility, scalability, and developer-friendly features. In this guide, you will learn how to add Prisma ORM to an existing TypeScript project, connect it to MongoDB, introspect your existing database schema, and start querying with type-safe Prisma Client. diff --git a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mysql.mdx b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mysql.mdx index 520e472c73..2fcd7936d3 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mysql.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mysql.mdx @@ -4,6 +4,7 @@ description: 'Add Prisma ORM to an existing TypeScript project with MySQL and le url: /prisma-orm/add-to-existing-project/mysql metaTitle: How to add Prisma ORM to an existing project using MySQL (15 min) metaDescription: 'Add Prisma ORM to an existing TypeScript project with MySQL and learn database introspection, baselining, and querying.' +stepTracking: true --- [MySQL](https://www.mysql.com/) is a widely-used open-source relational database management system known for its speed, reliability, and ease of use. In this guide, you will learn how to add Prisma ORM to an existing TypeScript project, connect it to MySQL, introspect your existing database schema, and start querying with type-safe Prisma Client. diff --git a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/planetscale.mdx b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/planetscale.mdx index b672746e46..2fa8322e56 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/planetscale.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/planetscale.mdx @@ -4,6 +4,7 @@ description: Add Prisma ORM to an existing TypeScript project with PlanetScale a url: /prisma-orm/add-to-existing-project/planetscale metaTitle: How to add Prisma ORM to an existing project using PlanetScale MySQL (15 min) metaDescription: Add Prisma ORM to an existing TypeScript project with PlanetScale MySQL and learn database introspection and querying. +stepTracking: true --- [PlanetScale](https://planetscale.com) is a serverless database platform. This guide covers both **PlanetScale MySQL** and **PlanetScale Postgres**. In this guide, you will learn how to add Prisma ORM to an existing TypeScript project, connect it to PlanetScale, introspect your existing database schema, and start querying with type-safe Prisma Client. diff --git a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/postgresql.mdx b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/postgresql.mdx index 9490cc72a9..f77f091f8b 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/postgresql.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/postgresql.mdx @@ -4,6 +4,7 @@ description: 'Add Prisma ORM to an existing TypeScript project with PostgreSQL a url: /prisma-orm/add-to-existing-project/postgresql metaTitle: How to add Prisma ORM to an existing project using PostgreSQL (15 min) metaDescription: 'Add Prisma ORM to an existing TypeScript project with PostgreSQL and learn database introspection, baselining, and querying.' +stepTracking: true --- [PostgreSQL](https://www.postgresql.org/) is a popular open-source relational database known for its reliability, feature robustness, and performance. In this guide, you will learn how to add Prisma ORM to an existing TypeScript project, connect it to PostgreSQL, introspect your existing database schema, and start querying with type-safe Prisma Client. diff --git a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/prisma-postgres.mdx b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/prisma-postgres.mdx index 0d8208f946..2ee3c36087 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/prisma-postgres.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/prisma-postgres.mdx @@ -4,6 +4,7 @@ description: 'Add Prisma ORM to an existing TypeScript project with Prisma Postg url: /prisma-orm/add-to-existing-project/prisma-postgres metaTitle: How to add Prisma ORM to an existing project using Prisma Postgres (15 min) metaDescription: 'Add Prisma ORM to an existing TypeScript project with Prisma Postgres and learn database introspection, baselining, and querying.' +stepTracking: true --- [Prisma Postgres](/postgres) is a fully managed PostgreSQL database that scales to zero and integrates smoothly with both Prisma ORM and Prisma Studio. In this guide, you will learn how to add Prisma ORM to an existing TypeScript project, connect it to Prisma Postgres, introspect your existing database schema, and start querying with type-safe Prisma Client. diff --git a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/sql-server.mdx b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/sql-server.mdx index 300431b0f5..193aebb505 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/sql-server.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/sql-server.mdx @@ -4,6 +4,7 @@ description: 'Add Prisma ORM to an existing TypeScript project with SQL Server a url: /prisma-orm/add-to-existing-project/sql-server metaTitle: How to add Prisma ORM to an existing project using SQL Server (15 min) metaDescription: 'Add Prisma ORM to an existing TypeScript project with SQL Server and learn database introspection, baselining, and querying.' +stepTracking: true --- [SQL Server](https://www.microsoft.com/en-us/sql-server) is Microsoft's enterprise relational database management system known for its performance, security, and integration with Microsoft tools. In this guide, you will learn how to add Prisma ORM to an existing TypeScript project, connect it to SQL Server, introspect your existing database schema, and start querying with type-safe Prisma Client. diff --git a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/sqlite.mdx b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/sqlite.mdx index 813fb56ee2..c2989298bc 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/sqlite.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/sqlite.mdx @@ -4,6 +4,7 @@ description: 'Add Prisma ORM to an existing TypeScript project with SQLite and l url: /prisma-orm/add-to-existing-project/sqlite metaTitle: How to add Prisma ORM to an existing project using SQLite (15 min) metaDescription: 'Add Prisma ORM to an existing TypeScript project with SQLite and learn database introspection, baselining, and querying.' +stepTracking: true --- [SQLite](https://sqlite.org) is a lightweight, file-based database that's perfect for development, prototyping, and small applications. It requires no setup and stores data in a local file. In this guide, you will learn how to add Prisma ORM to an existing TypeScript project, connect it to SQLite, introspect your existing database schema, and start querying with type-safe Prisma Client. diff --git a/apps/docs/content/docs/(index)/prisma-orm/quickstart/cockroachdb.mdx b/apps/docs/content/docs/(index)/prisma-orm/quickstart/cockroachdb.mdx index dcaa0c9ae4..bb49b84a16 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/quickstart/cockroachdb.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/quickstart/cockroachdb.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-orm/quickstart/cockroachdb metaTitle: 'Quickstart: Prisma ORM with CockroachDB (10 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to CockroachDB and generating a Prisma Client for database access. +stepTracking: true --- [CockroachDB](https://www.cockroachlabs.com) is a distributed SQL database built for cloud applications. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to CockroachDB using Prisma ORM, and generate a Prisma Client for easy, type-safe access to your database. diff --git a/apps/docs/content/docs/(index)/prisma-orm/quickstart/mongodb.mdx b/apps/docs/content/docs/(index)/prisma-orm/quickstart/mongodb.mdx index 447d9263ad..e592ccf456 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/quickstart/mongodb.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/quickstart/mongodb.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-orm/quickstart/mongodb metaTitle: 'Quickstart: Prisma ORM with MongoDB (10 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to MongoDB and generating a Prisma Client for database access. +stepTracking: true --- [MongoDB](https://www.mongodb.com) is a popular NoSQL document database. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to MongoDB using Prisma ORM, and generate a Prisma Client for easy, type-safe access to your database. diff --git a/apps/docs/content/docs/(index)/prisma-orm/quickstart/mysql.mdx b/apps/docs/content/docs/(index)/prisma-orm/quickstart/mysql.mdx index 8ab025505f..7038d835d5 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/quickstart/mysql.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/quickstart/mysql.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-orm/quickstart/mysql metaTitle: 'Quickstart: Prisma ORM with MySQL (10 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to MySQL and generating a Prisma Client for database access. +stepTracking: true --- [MySQL](https://www.mysql.com) is a popular open-source relational database. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to MySQL using Prisma ORM, and generate a Prisma Client for easy, type-safe access to your database. diff --git a/apps/docs/content/docs/(index)/prisma-orm/quickstart/planetscale.mdx b/apps/docs/content/docs/(index)/prisma-orm/quickstart/planetscale.mdx index c5465990f5..ed26ff7632 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/quickstart/planetscale.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/quickstart/planetscale.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-orm/quickstart/planetscale metaTitle: 'Quickstart: Prisma ORM with PlanetScale MySQL (10 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to PlanetScale MySQL and generating a Prisma Client for database access. +stepTracking: true --- [PlanetScale](https://planetscale.com) is a serverless database platform. This guide covers both **PlanetScale MySQL** and **PlanetScale Postgres**. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to PlanetScale using Prisma ORM, and generate a Prisma Client for easy, type-safe access to your database. diff --git a/apps/docs/content/docs/(index)/prisma-orm/quickstart/postgresql.mdx b/apps/docs/content/docs/(index)/prisma-orm/quickstart/postgresql.mdx index 469c2390b0..020b76a91f 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/quickstart/postgresql.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/quickstart/postgresql.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-orm/quickstart/postgresql metaTitle: 'Quickstart: Prisma ORM with PostgreSQL (10 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to PostgreSQL and generating a Prisma Client for database access. +stepTracking: true --- [PostgreSQL](https://www.postgresql.org) is a powerful, open-source relational database. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to PostgreSQL using Prisma ORM, and generate a Prisma Client for easy, type-safe access to your database. diff --git a/apps/docs/content/docs/(index)/prisma-orm/quickstart/prisma-postgres.mdx b/apps/docs/content/docs/(index)/prisma-orm/quickstart/prisma-postgres.mdx index c8a7ead748..41a66956be 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/quickstart/prisma-postgres.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/quickstart/prisma-postgres.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-orm/quickstart/prisma-postgres metaTitle: 'Quickstart: Prisma ORM with Prisma Postgres (5 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to Prisma Postgres and generating a Prisma Client for database access. +stepTracking: true --- [Prisma Postgres](/postgres) is a fully managed PostgreSQL database that scales to zero and integrates smoothly with both Prisma ORM and Prisma Studio. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to Prisma Postgres using Prisma ORM, and generate a Prisma Client for easy, type-safe access to your database. diff --git a/apps/docs/content/docs/(index)/prisma-orm/quickstart/sql-server.mdx b/apps/docs/content/docs/(index)/prisma-orm/quickstart/sql-server.mdx index c209822b7d..027e22e8f0 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/quickstart/sql-server.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/quickstart/sql-server.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-orm/quickstart/sql-server metaTitle: 'Quickstart: Prisma ORM with SQL Server (10 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to SQL Server and generating a Prisma Client for database access. +stepTracking: true --- [Microsoft SQL Server](https://www.microsoft.com/en-us/sql-server) is an enterprise-grade relational database. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to SQL Server using Prisma ORM, and generate a Prisma Client for easy, type-safe access to your database. diff --git a/apps/docs/content/docs/(index)/prisma-orm/quickstart/sqlite.mdx b/apps/docs/content/docs/(index)/prisma-orm/quickstart/sqlite.mdx index 890b76ec4d..c52682d519 100644 --- a/apps/docs/content/docs/(index)/prisma-orm/quickstart/sqlite.mdx +++ b/apps/docs/content/docs/(index)/prisma-orm/quickstart/sqlite.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-orm/quickstart/sqlite metaTitle: 'Quickstart: Prisma ORM with SQLite (5 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to SQLite and generating a Prisma Client for database access. +stepTracking: true --- [SQLite](https://sqlite.org) is a lightweight, file-based database that's perfect for development, prototyping, and small applications. It requires no setup and stores data in a local file. diff --git a/apps/docs/content/docs/(index)/prisma-postgres/from-the-cli.mdx b/apps/docs/content/docs/(index)/prisma-postgres/from-the-cli.mdx index 7260c7b790..1af607f5e7 100644 --- a/apps/docs/content/docs/(index)/prisma-postgres/from-the-cli.mdx +++ b/apps/docs/content/docs/(index)/prisma-postgres/from-the-cli.mdx @@ -4,6 +4,7 @@ description: Start building a Prisma application with a Prisma Postgres database url: /prisma-postgres/from-the-cli metaTitle: From the CLI metaDescription: Start building a Prisma application with a Prisma Postgres database from the CLI +stepTracking: true --- This page provides a step-by-step guide for Prisma Postgres after setting it up with `prisma init` and `npx create-db`: diff --git a/apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-mysql.mdx b/apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-mysql.mdx index 030c2da1fe..50cced5781 100644 --- a/apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-mysql.mdx +++ b/apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-mysql.mdx @@ -4,6 +4,7 @@ description: Learn how to import data from an existing MySQL database into Prism url: /prisma-postgres/import-from-existing-database-mysql metaTitle: Import from existing MySQL database into Prisma Postgres metaDescription: Learn how to import data from an existing MySQL database into Prisma Postgres. +stepTracking: true --- This guide provides step-by-step instructions for importing data from an existing MySQL database into Prisma Postgres. diff --git a/apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-postgresql.mdx b/apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-postgresql.mdx index fa4ee25009..a419483fdc 100644 --- a/apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-postgresql.mdx +++ b/apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-postgresql.mdx @@ -4,6 +4,7 @@ description: Learn how to import data from an existing PostgreSQL database into url: /prisma-postgres/import-from-existing-database-postgresql metaTitle: Import from existing Postgres database into Prisma Postgres metaDescription: Learn how to import data from an existing database into Prisma Postgres. +stepTracking: true --- This guide provides step-by-step instructions for importing data from an existing PostgreSQL database into Prisma Postgres. diff --git a/apps/docs/content/docs/(index)/prisma-postgres/quickstart/drizzle-orm.mdx b/apps/docs/content/docs/(index)/prisma-postgres/quickstart/drizzle-orm.mdx index 7063e198fa..ca9d5a1b2e 100644 --- a/apps/docs/content/docs/(index)/prisma-postgres/quickstart/drizzle-orm.mdx +++ b/apps/docs/content/docs/(index)/prisma-postgres/quickstart/drizzle-orm.mdx @@ -4,6 +4,7 @@ description: Get started with Drizzle ORM and Prisma Postgres url: /prisma-postgres/quickstart/drizzle-orm metaTitle: 'Quickstart: Drizzle ORM with Prisma Postgres (10 min)' metaDescription: Get started with Drizzle ORM and Prisma Postgres. +stepTracking: true --- [Drizzle ORM](https://orm.drizzle.team) is a TypeScript ORM. In this guide, you'll learn how to connect Drizzle ORM to [Prisma Postgres](/postgres). diff --git a/apps/docs/content/docs/(index)/prisma-postgres/quickstart/kysely.mdx b/apps/docs/content/docs/(index)/prisma-postgres/quickstart/kysely.mdx index 8ece2682cf..7b3cb369f6 100644 --- a/apps/docs/content/docs/(index)/prisma-postgres/quickstart/kysely.mdx +++ b/apps/docs/content/docs/(index)/prisma-postgres/quickstart/kysely.mdx @@ -4,6 +4,7 @@ description: Get started with Kysely and Prisma Postgres by creating a type-safe url: /prisma-postgres/quickstart/kysely metaTitle: 'Quickstart: Kysely with Prisma Postgres (10 min)' metaDescription: Get started with Kysely and Prisma Postgres by creating a type-safe SQL query builder for your database. +stepTracking: true --- [Kysely](https://kysely.dev) is a type-safe TypeScript SQL query builder that provides TypeScript support and a fluent API for building SQL queries. In this guide, you'll learn how to connect Kysely to [Prisma Postgres](/postgres) and start querying your database with full type safety. diff --git a/apps/docs/content/docs/(index)/prisma-postgres/quickstart/prisma-orm.mdx b/apps/docs/content/docs/(index)/prisma-postgres/quickstart/prisma-orm.mdx index 9bc81ab10a..846a83ee23 100644 --- a/apps/docs/content/docs/(index)/prisma-postgres/quickstart/prisma-orm.mdx +++ b/apps/docs/content/docs/(index)/prisma-postgres/quickstart/prisma-orm.mdx @@ -4,6 +4,7 @@ description: Create a new TypeScript project from scratch by connecting Prisma O url: /prisma-postgres/quickstart/prisma-orm metaTitle: 'Quickstart: Prisma ORM with Prisma Postgres (5 min)' metaDescription: Create a new TypeScript project from scratch by connecting Prisma ORM to Prisma Postgres and generating a Prisma Client for database access. +stepTracking: true --- [Prisma Postgres](/postgres) is a fully managed PostgreSQL database that scales to zero and integrates smoothly with both Prisma ORM and Prisma Studio. In this guide, you will learn how to set up a new TypeScript project from scratch, connect it to Prisma Postgres using Prisma ORM, and generate a Prisma Client for easy, type-safe access to your database. diff --git a/apps/docs/content/docs/(index)/prisma-postgres/quickstart/typeorm.mdx b/apps/docs/content/docs/(index)/prisma-postgres/quickstart/typeorm.mdx index 66514c0f36..9ae302606b 100644 --- a/apps/docs/content/docs/(index)/prisma-postgres/quickstart/typeorm.mdx +++ b/apps/docs/content/docs/(index)/prisma-postgres/quickstart/typeorm.mdx @@ -4,6 +4,7 @@ description: Get started with TypeORM and Prisma Postgres by connecting your Typ url: /prisma-postgres/quickstart/typeorm metaTitle: 'Quickstart: TypeORM with Prisma Postgres (10 min)' metaDescription: Get started with TypeORM and Prisma Postgres by connecting your TypeScript ORM to a managed PostgreSQL database. +stepTracking: true --- [TypeORM](https://typeorm.io) is a TypeScript ORM. In this guide, you'll learn how to connect TypeORM to [Prisma Postgres](/postgres). diff --git a/apps/docs/content/docs/guides/authentication/authjs/nextjs.mdx b/apps/docs/content/docs/guides/authentication/authjs/nextjs.mdx index 0695d41a97..3d63aef05e 100644 --- a/apps/docs/content/docs/guides/authentication/authjs/nextjs.mdx +++ b/apps/docs/content/docs/guides/authentication/authjs/nextjs.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-authjs-nextjs-cover.png url: /guides/authentication/authjs/nextjs metaTitle: How to use Prisma ORM and Prisma Postgres with Auth.js and Next.js metaDescription: Learn how to use Prisma ORM in a Next.js app with Auth.js +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/authentication/better-auth/astro.mdx b/apps/docs/content/docs/guides/authentication/better-auth/astro.mdx index ff47d677b6..1d444bb5fc 100644 --- a/apps/docs/content/docs/guides/authentication/better-auth/astro.mdx +++ b/apps/docs/content/docs/guides/authentication/better-auth/astro.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-betterauth-astro-cover.png url: /guides/authentication/better-auth/astro metaTitle: How to use Prisma ORM and Prisma Postgres with Better Auth and Astro metaDescription: Learn how to use Prisma ORM in an Astro app with Better Auth +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx b/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx index e6e3d8963a..cf1d275748 100644 --- a/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx +++ b/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-betterauth-nextjs-cover.png url: /guides/authentication/better-auth/nextjs metaTitle: How to use Prisma ORM and Prisma Postgres with Better Auth and Next.js metaDescription: Learn how to use Prisma ORM in a Next.js app with Better Auth +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/authentication/clerk/astro.mdx b/apps/docs/content/docs/guides/authentication/clerk/astro.mdx index 3671c10bef..e70bf7ffd4 100644 --- a/apps/docs/content/docs/guides/authentication/clerk/astro.mdx +++ b/apps/docs/content/docs/guides/authentication/clerk/astro.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-clerk-astro-cover.png url: /guides/authentication/clerk/astro metaTitle: How to use Prisma ORM and Prisma Postgres with Clerk Auth and Astro metaDescription: Learn how to use Prisma ORM in an Astro app with Clerk Auth +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/authentication/clerk/nextjs.mdx b/apps/docs/content/docs/guides/authentication/clerk/nextjs.mdx index 6217e930f4..7d9c904f5a 100644 --- a/apps/docs/content/docs/guides/authentication/clerk/nextjs.mdx +++ b/apps/docs/content/docs/guides/authentication/clerk/nextjs.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-clerk-nextjs-cover.png url: /guides/authentication/clerk/nextjs metaTitle: How to use Prisma ORM and Prisma Postgres with Clerk Auth and Next.js metaDescription: Learn how to use Prisma ORM in a Next.js app with Clerk Auth +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/database/data-migration.mdx b/apps/docs/content/docs/guides/database/data-migration.mdx index c5275f16d6..7161dd8108 100644 --- a/apps/docs/content/docs/guides/database/data-migration.mdx +++ b/apps/docs/content/docs/guides/database/data-migration.mdx @@ -5,6 +5,7 @@ image: /img/guides/data-migration-cover.png url: /guides/database/data-migration metaTitle: How to migrate data with Prisma ORM using the expand and contract pattern metaDescription: Learn how to perform data migrations using the expand and contract pattern with Prisma ORM +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/database/multiple-databases.mdx b/apps/docs/content/docs/guides/database/multiple-databases.mdx index 1dc7745b33..a406e316a5 100644 --- a/apps/docs/content/docs/guides/database/multiple-databases.mdx +++ b/apps/docs/content/docs/guides/database/multiple-databases.mdx @@ -5,6 +5,7 @@ image: /img/guides/multiple-databases.png url: /guides/database/multiple-databases metaTitle: How to use Prisma ORM with multiple databases in a single app metaDescription: 'Learn how to use multiple Prisma Clients in a single app to connect to multiple databases, handle migrations, and deploy your application to Vercel.' +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/database/schema-changes.mdx b/apps/docs/content/docs/guides/database/schema-changes.mdx index 2e99df1f55..f293307de1 100644 --- a/apps/docs/content/docs/guides/database/schema-changes.mdx +++ b/apps/docs/content/docs/guides/database/schema-changes.mdx @@ -5,6 +5,7 @@ image: /img/guides/schema-migration-cover.png url: /guides/database/schema-changes metaTitle: How to manage schema changes in a team with Prisma Migrate and Prisma ORM metaDescription: Learn how to use Prisma Migrate effectively when collaborating on a project as a team +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/deployment/bun-workspaces.mdx b/apps/docs/content/docs/guides/deployment/bun-workspaces.mdx index 948f57237b..c46a1ad729 100644 --- a/apps/docs/content/docs/guides/deployment/bun-workspaces.mdx +++ b/apps/docs/content/docs/guides/deployment/bun-workspaces.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-bun-workspaces-cover.png url: /guides/deployment/bun-workspaces metaTitle: How to use Prisma ORM and Prisma Postgres in a Bun workspaces monorepo metaDescription: Learn step-by-step how to integrate Prisma ORM in a Bun workspaces monorepo to build scalable and modular applications efficiently. +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/deployment/cloudflare-d1.mdx b/apps/docs/content/docs/guides/deployment/cloudflare-d1.mdx index b978732277..fc521199b6 100644 --- a/apps/docs/content/docs/guides/deployment/cloudflare-d1.mdx +++ b/apps/docs/content/docs/guides/deployment/cloudflare-d1.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-d1-setup-cover.png url: /guides/deployment/cloudflare-d1 metaTitle: How to use Prisma ORM with Cloudflare D1 metaDescription: Learn how to use Prisma ORM with Cloudflare D1 +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/deployment/cloudflare-workers.mdx b/apps/docs/content/docs/guides/deployment/cloudflare-workers.mdx index a386f5a8d6..ba5adfa3a3 100644 --- a/apps/docs/content/docs/guides/deployment/cloudflare-workers.mdx +++ b/apps/docs/content/docs/guides/deployment/cloudflare-workers.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-cloudflare-workers-cover.png url: /guides/deployment/cloudflare-workers metaTitle: How to use Prisma ORM and Prisma Postgres with Cloudflare Workers metaDescription: Learn how to use Prisma ORM in a Cloudflare Workers project +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/deployment/docker.mdx b/apps/docs/content/docs/guides/deployment/docker.mdx index 42c2e3eb4b..2bac1ae7d6 100644 --- a/apps/docs/content/docs/guides/deployment/docker.mdx +++ b/apps/docs/content/docs/guides/deployment/docker.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-orm-docker.png url: /guides/deployment/docker metaTitle: How to use Prisma in Docker metaDescription: Learn step-by-step configure a Prisma ORM app in Docker +stepTracking: true --- This guide walks you through setting up a Prisma ORM application within a Docker environment. You'll learn how to configure a Node.js project, integrate Prisma for database management, and orchestrate the application using Docker Compose. By the end, you'll have a fully functional Prisma application running in a Docker container. diff --git a/apps/docs/content/docs/guides/deployment/pnpm-workspaces.mdx b/apps/docs/content/docs/guides/deployment/pnpm-workspaces.mdx index 9e3698501e..5edec346b3 100644 --- a/apps/docs/content/docs/guides/deployment/pnpm-workspaces.mdx +++ b/apps/docs/content/docs/guides/deployment/pnpm-workspaces.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-orm-in-pnpm-monorepo.png url: /guides/deployment/pnpm-workspaces metaTitle: How to use Prisma ORM and Prisma Postgres in a pnpm workspaces monorepo metaDescription: Learn step-by-step how to integrate Prisma ORM in a pnpm workspaces monorepo to build scalable and modular applications efficiently. +stepTracking: true --- Prisma is a powerful ORM for managing your database, and when combined with [pnpm Workspaces](https://pnpm.io/workspaces), you can maintain a lean and modular monorepo architecture. In this guide, we’ll walk through setting up Prisma in its own package within a pnpm Workspaces monorepo, enabling maintainable type sharing and efficient database management across your apps. diff --git a/apps/docs/content/docs/guides/deployment/turborepo.mdx b/apps/docs/content/docs/guides/deployment/turborepo.mdx index a0181517ac..d93d0f86b7 100644 --- a/apps/docs/content/docs/guides/deployment/turborepo.mdx +++ b/apps/docs/content/docs/guides/deployment/turborepo.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-turborepo-setup.png url: /guides/deployment/turborepo metaTitle: How to use Prisma ORM and Prisma Postgres with Turborepo metaDescription: 'Learn step-by-step how to integrate Prisma ORM with Turborepo to build modular, scalable monorepo architectures efficiently.' +stepTracking: true --- Prisma is a powerful ORM for managing databases, and [Turborepo](https://turborepo.dev/docs) simplifies monorepo workflows. By combining these tools, you can create a scalable, modular architecture for your projects. diff --git a/apps/docs/content/docs/guides/frameworks/astro.mdx b/apps/docs/content/docs/guides/frameworks/astro.mdx index 5b68ece356..ce083e4228 100644 --- a/apps/docs/content/docs/guides/frameworks/astro.mdx +++ b/apps/docs/content/docs/guides/frameworks/astro.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-astro-cover.png url: /guides/frameworks/astro metaTitle: How to use Prisma ORM and Prisma Postgres with Astro metaDescription: Learn how to use Prisma ORM in an Astro app +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/frameworks/elysia.mdx b/apps/docs/content/docs/guides/frameworks/elysia.mdx index a1556954df..6660a1889f 100644 --- a/apps/docs/content/docs/guides/frameworks/elysia.mdx +++ b/apps/docs/content/docs/guides/frameworks/elysia.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-elysia-cover.png url: /guides/frameworks/elysia metaTitle: How to use Prisma ORM and Prisma Postgres with Elysia metaDescription: Learn how to use Prisma ORM in an Elysia app +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/frameworks/hono.mdx b/apps/docs/content/docs/guides/frameworks/hono.mdx index 809d2632ab..04f1d6c498 100644 --- a/apps/docs/content/docs/guides/frameworks/hono.mdx +++ b/apps/docs/content/docs/guides/frameworks/hono.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-hono-cover.png url: /guides/frameworks/hono metaTitle: How to use Prisma ORM and Prisma Postgres with Hono metaDescription: Learn how to use Prisma ORM in a Hono app +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/frameworks/nestjs.mdx b/apps/docs/content/docs/guides/frameworks/nestjs.mdx index c4cfb1143c..686b74ac39 100644 --- a/apps/docs/content/docs/guides/frameworks/nestjs.mdx +++ b/apps/docs/content/docs/guides/frameworks/nestjs.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-nestjs-cover.png url: /guides/frameworks/nestjs metaTitle: How to use Prisma ORM and Prisma Postgres with NestJS metaDescription: Learn how to use Prisma ORM in a NestJS app +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/frameworks/nextjs.mdx b/apps/docs/content/docs/guides/frameworks/nextjs.mdx index 727db37df6..7a32efad42 100644 --- a/apps/docs/content/docs/guides/frameworks/nextjs.mdx +++ b/apps/docs/content/docs/guides/frameworks/nextjs.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-nextjs-cover.png url: /guides/frameworks/nextjs metaTitle: How to use Prisma ORM and Prisma Postgres with Next.js and Vercel metaDescription: Learn how to use Prisma ORM in a Next.js app and deploy it to Vercel +stepTracking: true aiPrompt: "nextjs" --- diff --git a/apps/docs/content/docs/guides/frameworks/nuxt.mdx b/apps/docs/content/docs/guides/frameworks/nuxt.mdx index f62ca14b11..74f2e13a7c 100644 --- a/apps/docs/content/docs/guides/frameworks/nuxt.mdx +++ b/apps/docs/content/docs/guides/frameworks/nuxt.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-postgres-and-prisma-nuxt-guide.png url: /guides/frameworks/nuxt metaTitle: Build a Nuxt app with Prisma ORM and Prisma Postgres metaDescription: A step-by-step guide to setting up and using Prisma ORM and Prisma Postgres in a Nuxt app. +stepTracking: true aiPrompt: "nuxt" --- diff --git a/apps/docs/content/docs/guides/frameworks/react-router-7.mdx b/apps/docs/content/docs/guides/frameworks/react-router-7.mdx index 8bc7f56270..81b93655a2 100644 --- a/apps/docs/content/docs/guides/frameworks/react-router-7.mdx +++ b/apps/docs/content/docs/guides/frameworks/react-router-7.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-react-router-7-cover.png url: /guides/frameworks/react-router-7 metaTitle: How to use Prisma ORM and Prisma Postgres with React Router 7 metaDescription: Learn how to use Prisma ORM and Prisma Postgres in a React Router 7 app. +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/frameworks/solid-start.mdx b/apps/docs/content/docs/guides/frameworks/solid-start.mdx index 5d5a49ed91..c8e46b2655 100644 --- a/apps/docs/content/docs/guides/frameworks/solid-start.mdx +++ b/apps/docs/content/docs/guides/frameworks/solid-start.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-solid-start-cover.png url: /guides/frameworks/solid-start metaTitle: How to use Prisma ORM and Prisma Postgres with SolidStart metaDescription: Learn how to use Prisma ORM in a SolidStart app +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/frameworks/sveltekit.mdx b/apps/docs/content/docs/guides/frameworks/sveltekit.mdx index 4dccac116f..e3fbd64854 100644 --- a/apps/docs/content/docs/guides/frameworks/sveltekit.mdx +++ b/apps/docs/content/docs/guides/frameworks/sveltekit.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-sveltekit-cover.png url: /guides/frameworks/sveltekit metaTitle: How to use Prisma ORM and Prisma Postgres with SvelteKit metaDescription: Learn how to use Prisma ORM in a SvelteKit app +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/frameworks/tanstack-start.mdx b/apps/docs/content/docs/guides/frameworks/tanstack-start.mdx index 158007144b..6c80a9801a 100644 --- a/apps/docs/content/docs/guides/frameworks/tanstack-start.mdx +++ b/apps/docs/content/docs/guides/frameworks/tanstack-start.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-tanstack-start-cover.png url: /guides/frameworks/tanstack-start metaTitle: How to use Prisma ORM and Prisma Postgres with TanStack Start metaDescription: Learn how to use Prisma ORM in a TanStack Start app +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/index.mdx b/apps/docs/content/docs/guides/index.mdx index a6e057d6fc..11bb612227 100644 --- a/apps/docs/content/docs/guides/index.mdx +++ b/apps/docs/content/docs/guides/index.mdx @@ -4,6 +4,7 @@ description: A collection of guides for various tasks and workflows url: /guides metaTitle: Prisma Guides metaDescription: A collection of guides for various tasks and workflows. +stepTracking: true --- Welcome to the Guides section! Here you'll find practical, step-by-step guides to help you accomplish specific tasks with Prisma products, including Prisma ORM, Prisma Accelerate, Prisma Postgres, and more. diff --git a/apps/docs/content/docs/guides/integrations/ai-sdk.mdx b/apps/docs/content/docs/guides/integrations/ai-sdk.mdx index 3bd3af5184..687567e78e 100644 --- a/apps/docs/content/docs/guides/integrations/ai-sdk.mdx +++ b/apps/docs/content/docs/guides/integrations/ai-sdk.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-ai-sdk-nextjs-cover.png url: /guides/integrations/ai-sdk metaTitle: 'How to use AI SDK with Prisma ORM, Prisma Postgres, and Next.js for chat applications' metaDescription: 'Build a chat application with AI SDK, Prisma, and Next.js to store chat sessions and messages' +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/integrations/datadog.mdx b/apps/docs/content/docs/guides/integrations/datadog.mdx index ac26131e60..860c3a71e1 100644 --- a/apps/docs/content/docs/guides/integrations/datadog.mdx +++ b/apps/docs/content/docs/guides/integrations/datadog.mdx @@ -5,6 +5,7 @@ image: /img/guides/datadog-tracing-prisma.png url: /guides/integrations/datadog metaTitle: How to set up Datadog tracing with Prisma ORM and Prisma Postgres metaDescription: 'Learn how to configure Datadog tracing for a Prisma ORM project. Capture spans for every query using the @prisma/instrumentation package, dd-trace, and view them in Datadog.' +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/integrations/deno.mdx b/apps/docs/content/docs/guides/integrations/deno.mdx index 385c4c193d..1052fd8ea9 100644 --- a/apps/docs/content/docs/guides/integrations/deno.mdx +++ b/apps/docs/content/docs/guides/integrations/deno.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-deno-integration-cover.png url: /guides/integrations/deno metaTitle: Integrate Prisma Postgres with Deno Deploy metaDescription: Learn how to integrate Prisma Postgres in a Deno Deploy project using a simple Deno application. +stepTracking: true --- [Deno Deploy](https://deno.com/deploy) includes a feature that allows you to provision a Prisma Postgres database directly within the platform. This guide demonstrates how to integrate Prisma Postgres in a Deno Deploy project using a minimal Deno application that logs HTTP requests to the database. diff --git a/apps/docs/content/docs/guides/integrations/embed-studio.mdx b/apps/docs/content/docs/guides/integrations/embed-studio.mdx index dc91bef7ba..0d08f12819 100644 --- a/apps/docs/content/docs/guides/integrations/embed-studio.mdx +++ b/apps/docs/content/docs/guides/integrations/embed-studio.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-studio-embedded-in-nextjs.png url: /guides/integrations/embed-studio metaTitle: Prisma MCP Server metaDescription: Manage Prisma Postgres databases using LLMs with the Prisma Model-Context-Protocol (MCP) Server +stepTracking: true --- Prisma Studio can be embedded directly into your Next.js application using the [`@prisma/studio-core`](https://www.npmjs.com/package/@prisma/studio-core) package. This guide walks you through the setup so you can manage your database from within your app instead of running Prisma Studio separately. diff --git a/apps/docs/content/docs/guides/integrations/github-actions.mdx b/apps/docs/content/docs/guides/integrations/github-actions.mdx index 89da518edf..c3302f6d32 100644 --- a/apps/docs/content/docs/guides/integrations/github-actions.mdx +++ b/apps/docs/content/docs/guides/integrations/github-actions.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-postgres-github-actions-cover.png url: /guides/integrations/github-actions metaTitle: How to provision preview databases with GitHub Actions and Prisma Postgres metaDescription: Provision and manage Prisma Postgres databases per pull request using GitHub Actions and Prisma Management API +stepTracking: true --- ## Overview diff --git a/apps/docs/content/docs/guides/integrations/neon-accelerate.mdx b/apps/docs/content/docs/guides/integrations/neon-accelerate.mdx index 2559e6ee76..a591ab9b40 100644 --- a/apps/docs/content/docs/guides/integrations/neon-accelerate.mdx +++ b/apps/docs/content/docs/guides/integrations/neon-accelerate.mdx @@ -5,6 +5,7 @@ image: /img/guides/neon-connection-pooling.png url: /guides/integrations/neon-accelerate metaTitle: Set up PostgreSQL on Neon with Prisma Accelerate's Connection Pool metaDescription: Learn how to set up PostgreSQL on Neon with Prisma Accelerate's Connection Pool +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/integrations/permit-io.mdx b/apps/docs/content/docs/guides/integrations/permit-io.mdx index 68e6fade04..527400c132 100644 --- a/apps/docs/content/docs/guides/integrations/permit-io.mdx +++ b/apps/docs/content/docs/guides/integrations/permit-io.mdx @@ -5,6 +5,7 @@ image: /img/guides/access-control-with-permitio.png url: /guides/integrations/permit-io metaTitle: How to use Prisma ORM and Prisma Postgres with CPermit.io metaDescription: Learn how to implement access control with Prisma ORM with Permit.io +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/integrations/pgfence.mdx b/apps/docs/content/docs/guides/integrations/pgfence.mdx index f751a31e5b..207ba8e1ff 100644 --- a/apps/docs/content/docs/guides/integrations/pgfence.mdx +++ b/apps/docs/content/docs/guides/integrations/pgfence.mdx @@ -4,6 +4,7 @@ description: Analyze Prisma Migrate SQL files for dangerous lock patterns, risk url: /guides/integrations/pgfence metaTitle: How to use pgfence with Prisma Migrate for safe PostgreSQL migrations metaDescription: Learn how to analyze Prisma migration SQL files with pgfence to detect dangerous lock patterns, understand risk levels, and get safe rewrite recipes before deploying. +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/integrations/shopify.mdx b/apps/docs/content/docs/guides/integrations/shopify.mdx index c1d614679c..6cfc480325 100644 --- a/apps/docs/content/docs/guides/integrations/shopify.mdx +++ b/apps/docs/content/docs/guides/integrations/shopify.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-shopify-cover.png url: /guides/integrations/shopify metaTitle: How to use Prisma Postgres with Shopify metaDescription: Learn how to use Prisma Postgres with Shopify +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/integrations/supabase-accelerate.mdx b/apps/docs/content/docs/guides/integrations/supabase-accelerate.mdx index e5af0325d0..cceaf1eaa6 100644 --- a/apps/docs/content/docs/guides/integrations/supabase-accelerate.mdx +++ b/apps/docs/content/docs/guides/integrations/supabase-accelerate.mdx @@ -5,6 +5,7 @@ image: /img/guides/supabase-connection-pooling.png url: /guides/integrations/supabase-accelerate metaTitle: Set up PostgreSQL on Supabase with Prisma Accelerate's Connection Pool metaDescription: Learn how to set up PostgreSQL on Supabase with Prisma Accelerate's Connection Pool +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/integrations/vercel-deployment.mdx b/apps/docs/content/docs/guides/integrations/vercel-deployment.mdx index 7a129f34a6..de66d0fd31 100644 --- a/apps/docs/content/docs/guides/integrations/vercel-deployment.mdx +++ b/apps/docs/content/docs/guides/integrations/vercel-deployment.mdx @@ -5,6 +5,7 @@ image: /img/guides/vercel_app_deployments.png url: /guides/integrations/vercel-deployment metaTitle: Instant app deployment with Vercel and Prisma Postgres metaDescription: Learn how to programmatically deploy applications with Vercel and Prisma Postgres using the instant deployment API +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/making-guides.mdx b/apps/docs/content/docs/guides/making-guides.mdx index 21d0690c5e..81619b7ceb 100644 --- a/apps/docs/content/docs/guides/making-guides.mdx +++ b/apps/docs/content/docs/guides/making-guides.mdx @@ -4,6 +4,7 @@ description: 'Learn how to write clear, consistent, and helpful guides for Prism url: /guides/making-guides metaTitle: How to write guides for Prisma ORM metaDescription: 'Learn how to write clear, consistent, and helpful guides for Prisma ORM documentation' +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/postgres/flyio.mdx b/apps/docs/content/docs/guides/postgres/flyio.mdx index cb29678b7e..eb627e22ba 100644 --- a/apps/docs/content/docs/guides/postgres/flyio.mdx +++ b/apps/docs/content/docs/guides/postgres/flyio.mdx @@ -4,6 +4,7 @@ description: Learn how to deploy applications using Prisma Postgres to Fly.io url: /guides/postgres/flyio metaTitle: Deploy Prisma Postgres apps to Fly.io metaDescription: Learn how to deploy applications using Prisma Postgres to Fly.io. +stepTracking: true --- [Fly.io](https://fly.io/) is a cloud application platform that lets you deploy full-stack applications globally. This guide shows you how to deploy a Node.js application using Prisma Postgres to Fly.io. diff --git a/apps/docs/content/docs/guides/postgres/idx.mdx b/apps/docs/content/docs/guides/postgres/idx.mdx index bc172cd82c..0d832845a4 100644 --- a/apps/docs/content/docs/guides/postgres/idx.mdx +++ b/apps/docs/content/docs/guides/postgres/idx.mdx @@ -4,6 +4,7 @@ description: Learn how to use Prisma Postgres in the online Firebase Studio url: /guides/postgres/idx metaTitle: Use Prisma Postgres in Firebase Studio metaDescription: Learn how to use Prisma Postgres in the online Firebase Studio. +stepTracking: true --- If you want to explore Prisma Postgres without leaving your browser, you can try it out the via Google's [Firebase Studio](https://studio.firebase.google.com/), a fully-fledged online IDE: diff --git a/apps/docs/content/docs/guides/postgres/netlify.mdx b/apps/docs/content/docs/guides/postgres/netlify.mdx index d0e6896d20..a4fbc0dc0d 100644 --- a/apps/docs/content/docs/guides/postgres/netlify.mdx +++ b/apps/docs/content/docs/guides/postgres/netlify.mdx @@ -4,6 +4,7 @@ description: Learn how to create Prisma Postgres databases via the official Netl url: /guides/postgres/netlify metaTitle: Prisma Postgres via Netlify Extension metaDescription: Learn how to create Prisma Postgres databases via the official Netlify extension and deploy your applications with it. +stepTracking: true --- The [Netlify extension for Prisma Postgres](https://www.netlify.com/integrations/prisma) connects your Netlify sites with Prisma Postgres instances. Once connected, the extension will automatically set the `DATABASE_URL` environment variable on your deployed Netlify sites. diff --git a/apps/docs/content/docs/guides/postgres/vercel.mdx b/apps/docs/content/docs/guides/postgres/vercel.mdx index 91e83ab80c..b2a4acbabb 100644 --- a/apps/docs/content/docs/guides/postgres/vercel.mdx +++ b/apps/docs/content/docs/guides/postgres/vercel.mdx @@ -4,6 +4,7 @@ description: Learn how to create Prisma Postgres databases via the Vercel Market url: /guides/postgres/vercel metaTitle: Prisma Postgres via Vercel Marketplace metaDescription: Learn how to create Prisma Postgres databases via the Vercel Marketplace and deploy your applications with it. +stepTracking: true --- The [Vercel Marketplace integration for Prisma Postgres](https://www.vercel.com/marketplace/prisma) connects your Vercel projects with Prisma Postgres instances. Once connected, the integration will automatically set the following environment variable on your deployed Vercel app: diff --git a/apps/docs/content/docs/guides/postgres/viewing-data.mdx b/apps/docs/content/docs/guides/postgres/viewing-data.mdx index a74420e8a4..4ff3c3d4c0 100644 --- a/apps/docs/content/docs/guides/postgres/viewing-data.mdx +++ b/apps/docs/content/docs/guides/postgres/viewing-data.mdx @@ -4,6 +4,7 @@ description: Viewing and editing data in Prisma Postgres via Prisma Studio or ot url: /guides/postgres/viewing-data metaTitle: Viewing data metaDescription: Viewing and editing data in Prisma Postgres via Prisma Studio or other database GUIs. +stepTracking: true --- You can view and edit your data in Prisma Postgres using either [Prisma Studio](/studio) or 3rd party database editors. diff --git a/apps/docs/content/docs/guides/postgres/vscode.mdx b/apps/docs/content/docs/guides/postgres/vscode.mdx index dccd332895..8ad5a42c11 100644 --- a/apps/docs/content/docs/guides/postgres/vscode.mdx +++ b/apps/docs/content/docs/guides/postgres/vscode.mdx @@ -4,6 +4,7 @@ description: The Prisma VS Code extension provides a management UI for Prisma Po url: /guides/postgres/vscode metaTitle: Prisma VS Code extension metaDescription: The Prisma VS Code extension provides a management UI for Prisma Postgres and superpowers for Copilot agent mode. +stepTracking: true --- ## Overview diff --git a/apps/docs/content/docs/guides/runtimes/bun.mdx b/apps/docs/content/docs/guides/runtimes/bun.mdx index 52a1c396fa..ebe228f1c1 100644 --- a/apps/docs/content/docs/guides/runtimes/bun.mdx +++ b/apps/docs/content/docs/guides/runtimes/bun.mdx @@ -5,6 +5,7 @@ image: /img/guides/prisma-bun-cover-image.png url: /guides/runtimes/bun metaTitle: How to use Prisma ORM and Prisma Postgres with Bun metaDescription: Learn how to use Prisma ORM in a Bun application with Prisma Postgres +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/runtimes/deno.mdx b/apps/docs/content/docs/guides/runtimes/deno.mdx index 8f992db508..855482fa18 100644 --- a/apps/docs/content/docs/guides/runtimes/deno.mdx +++ b/apps/docs/content/docs/guides/runtimes/deno.mdx @@ -4,6 +4,7 @@ description: Learn how to use Prisma ORM in a Deno application with Prisma Postg url: /guides/runtimes/deno metaTitle: How to use Prisma ORM and Prisma Postgres with Deno metaDescription: Learn how to use Prisma ORM in a Deno application with Prisma Postgres +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/switch-to-prisma-orm/from-drizzle.mdx b/apps/docs/content/docs/guides/switch-to-prisma-orm/from-drizzle.mdx index be2248e711..d5fccbcab0 100644 --- a/apps/docs/content/docs/guides/switch-to-prisma-orm/from-drizzle.mdx +++ b/apps/docs/content/docs/guides/switch-to-prisma-orm/from-drizzle.mdx @@ -5,6 +5,7 @@ image: /img/guides/migrate-from-drizzle-cover.png url: /guides/switch-to-prisma-orm/from-drizzle metaTitle: How to migrate from Drizzle to Prisma ORM metaDescription: Learn how to migrate from Drizzle to Prisma ORM +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/switch-to-prisma-orm/from-mongoose.mdx b/apps/docs/content/docs/guides/switch-to-prisma-orm/from-mongoose.mdx index a78726c3b9..816d69b9ce 100644 --- a/apps/docs/content/docs/guides/switch-to-prisma-orm/from-mongoose.mdx +++ b/apps/docs/content/docs/guides/switch-to-prisma-orm/from-mongoose.mdx @@ -5,6 +5,7 @@ image: /img/guides/migrate-from-mongoose-cover.png url: /guides/switch-to-prisma-orm/from-mongoose metaTitle: How to migrate from Mongoose to Prisma ORM metaDescription: Learn how to migrate from Mongoose to Prisma ORM +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/switch-to-prisma-orm/from-sql-orms.mdx b/apps/docs/content/docs/guides/switch-to-prisma-orm/from-sql-orms.mdx index a5efb61768..c68187645d 100644 --- a/apps/docs/content/docs/guides/switch-to-prisma-orm/from-sql-orms.mdx +++ b/apps/docs/content/docs/guides/switch-to-prisma-orm/from-sql-orms.mdx @@ -4,6 +4,7 @@ description: Learn how to migrate from Sequelize or TypeORM to Prisma ORM url: /guides/switch-to-prisma-orm/from-sql-orms metaTitle: How to migrate from TypeORM to Prisma ORM metaDescription: Learn how to migrate from TypeORM to Prisma ORM +stepTracking: true --- ## Introduction diff --git a/apps/docs/content/docs/guides/switch-to-prisma-postgres/from-neon.mdx b/apps/docs/content/docs/guides/switch-to-prisma-postgres/from-neon.mdx index 6948ff9687..b4862dc17d 100644 --- a/apps/docs/content/docs/guides/switch-to-prisma-postgres/from-neon.mdx +++ b/apps/docs/content/docs/guides/switch-to-prisma-postgres/from-neon.mdx @@ -4,6 +4,7 @@ description: Learn how to migrate from Neon to Prisma Postgres url: /guides/switch-to-prisma-postgres/from-neon metaTitle: How to migrate from Neon to Prisma Postgres metaDescription: Learn how to migrate from Neon to Prisma Postgres. +stepTracking: true --- This guide walks you through migrating data from Neon to Prisma Postgres using `pg_dump` and `pg_restore`. diff --git a/apps/docs/content/docs/guides/switch-to-prisma-postgres/from-supabase.mdx b/apps/docs/content/docs/guides/switch-to-prisma-postgres/from-supabase.mdx index 7c76e835ea..635d98a783 100644 --- a/apps/docs/content/docs/guides/switch-to-prisma-postgres/from-supabase.mdx +++ b/apps/docs/content/docs/guides/switch-to-prisma-postgres/from-supabase.mdx @@ -4,6 +4,7 @@ description: Learn how to migrate from Supabase to Prisma Postgres url: /guides/switch-to-prisma-postgres/from-supabase metaTitle: How to migrate from Supabase to Prisma Postgres metaDescription: Learn how to migrate from Supabase to Prisma Postgres. +stepTracking: true --- This guide walks you through migrating data from Supabase to Prisma Postgres using `pg_dump` and `pg_restore`. diff --git a/apps/docs/content/docs/guides/upgrade-prisma-orm/v1.mdx b/apps/docs/content/docs/guides/upgrade-prisma-orm/v1.mdx index 6bdf8d2511..1ad67c4536 100644 --- a/apps/docs/content/docs/guides/upgrade-prisma-orm/v1.mdx +++ b/apps/docs/content/docs/guides/upgrade-prisma-orm/v1.mdx @@ -4,6 +4,7 @@ description: Comprehensive guide for upgrading from Prisma 1 to Prisma ORM v1 url: /guides/upgrade-prisma-orm/v1 metaTitle: 'Upgrade from Prisma 1 to Prisma ORM 2' metaDescription: 'Upgrading your project from Prisma 1 to Prisma ORM 2' +stepTracking: true --- diff --git a/apps/docs/content/docs/guides/upgrade-prisma-orm/v3.mdx b/apps/docs/content/docs/guides/upgrade-prisma-orm/v3.mdx index 37e11d9b9c..4881875663 100644 --- a/apps/docs/content/docs/guides/upgrade-prisma-orm/v3.mdx +++ b/apps/docs/content/docs/guides/upgrade-prisma-orm/v3.mdx @@ -4,6 +4,7 @@ description: Comprehensive guide for upgrading to Prisma ORM v3 url: /guides/upgrade-prisma-orm/v3 metaTitle: 'Upgrade to Prisma ORM 3' metaDescription: 'Guides on how to upgrade to Prisma ORM 3' +stepTracking: true --- diff --git a/apps/docs/content/docs/guides/upgrade-prisma-orm/v4.mdx b/apps/docs/content/docs/guides/upgrade-prisma-orm/v4.mdx index 2035e9ad0e..487918f664 100644 --- a/apps/docs/content/docs/guides/upgrade-prisma-orm/v4.mdx +++ b/apps/docs/content/docs/guides/upgrade-prisma-orm/v4.mdx @@ -4,6 +4,7 @@ description: Comprehensive guide for upgrading to Prisma ORM v4 url: /guides/upgrade-prisma-orm/v4 metaTitle: 'Upgrade to Prisma ORM 4' metaDescription: 'Guides on how to upgrade to Prisma ORM 4' +stepTracking: true --- diff --git a/apps/docs/content/docs/guides/upgrade-prisma-orm/v5.mdx b/apps/docs/content/docs/guides/upgrade-prisma-orm/v5.mdx index 7a9964e058..a524aa2bfb 100644 --- a/apps/docs/content/docs/guides/upgrade-prisma-orm/v5.mdx +++ b/apps/docs/content/docs/guides/upgrade-prisma-orm/v5.mdx @@ -4,6 +4,7 @@ description: Comprehensive guide for upgrading to Prisma ORM v5 url: /guides/upgrade-prisma-orm/v5 metaTitle: 'Upgrade to Prisma ORM 5' metaDescription: 'Guides on how to upgrade to Prisma ORM 5' +stepTracking: true --- diff --git a/apps/docs/content/docs/guides/upgrade-prisma-orm/v6.mdx b/apps/docs/content/docs/guides/upgrade-prisma-orm/v6.mdx index 01c436ac52..d9b37b36f1 100644 --- a/apps/docs/content/docs/guides/upgrade-prisma-orm/v6.mdx +++ b/apps/docs/content/docs/guides/upgrade-prisma-orm/v6.mdx @@ -4,6 +4,7 @@ description: Comprehensive guide for upgrading to Prisma ORM v6 url: /guides/upgrade-prisma-orm/v6 metaTitle: 'Upgrade to Prisma ORM 6' metaDescription: 'Guides on how to upgrade to Prisma ORM 6' +stepTracking: true --- diff --git a/apps/docs/content/docs/guides/upgrade-prisma-orm/v7.mdx b/apps/docs/content/docs/guides/upgrade-prisma-orm/v7.mdx index fab5145120..5a2f1b2f45 100644 --- a/apps/docs/content/docs/guides/upgrade-prisma-orm/v7.mdx +++ b/apps/docs/content/docs/guides/upgrade-prisma-orm/v7.mdx @@ -4,6 +4,7 @@ description: Comprehensive guide for upgrading to Prisma ORM v7 url: /guides/upgrade-prisma-orm/v7 metaTitle: 'Upgrade to Prisma ORM 7' metaDescription: 'Guide on how to upgrade to Prisma ORM 7' +stepTracking: true --- From 9466cbbcd8244ef342328f594da9116f947c1b2a Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Wed, 22 Apr 2026 14:03:43 -0400 Subject: [PATCH 3/3] feat(docs): add to posthog event --- .../src/components/toc/tracked-wrapper.tsx | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/apps/docs/src/components/toc/tracked-wrapper.tsx b/apps/docs/src/components/toc/tracked-wrapper.tsx index 2b8edf8f54..80d0d380db 100644 --- a/apps/docs/src/components/toc/tracked-wrapper.tsx +++ b/apps/docs/src/components/toc/tracked-wrapper.tsx @@ -3,11 +3,32 @@ import * as Primitive from "fumadocs-core/toc"; import { useOnChange } from "fumadocs-core/utils/use-on-change"; import { usePathname } from "next/navigation"; -import { useRef } from "react"; +import { useEffect, useRef } from "react"; import posthog from "posthog-js"; import * as TocClerk from "./clerk"; import * as TocDefault from "./default"; +function getInitialStepStorageKey(pathname: string) { + return `stepTracking:${pathname}:initial_step`; +} + +function getInitialStep(pathname: string, anchor: string) { + try { + const storageKey = getInitialStepStorageKey(pathname); + const existingInitialStep = sessionStorage.getItem(storageKey); + + if (existingInitialStep) { + return existingInitialStep; + } + + sessionStorage.setItem(storageKey, anchor); + } catch { + // Ignore storage failures and fall back to the current anchor. + } + + return anchor; +} + export function TrackedTOCWrapper({ tocStyle = "default", stepTracking = false, @@ -20,6 +41,12 @@ export function TrackedTOCWrapper({ const timeoutRef = useRef(undefined); const lastEmittedRef = useRef(""); + useEffect(() => { + lastEmittedRef.current = ""; + + return () => clearTimeout(timeoutRef.current); + }, [pathname]); + useOnChange(active, () => { if (!stepTracking) return; @@ -29,11 +56,14 @@ export function TrackedTOCWrapper({ const eventKey = `${pathname}#${anchor}`; if (lastEmittedRef.current === eventKey) return; + const initialStep = getInitialStep(pathname, anchor); + clearTimeout(timeoutRef.current); timeoutRef.current = setTimeout(() => { posthog.capture("pageview_quickstart", { page: pathname, section: anchor, + initial_step: initialStep, }); lastEmittedRef.current = eventKey; }, 300);