diff --git a/content/200-orm/050-overview/100-introduction/500-databases/05-sqlite.mdx b/content/200-orm/050-overview/100-introduction/500-databases/05-sqlite.mdx index bcf30844d8..99bc35cded 100644 --- a/content/200-orm/050-overview/100-introduction/500-databases/05-sqlite.mdx +++ b/content/200-orm/050-overview/100-introduction/500-databases/05-sqlite.mdx @@ -35,7 +35,7 @@ The SQLite connector maps the [scalar types](/concepts/components/prisma-schema/ > Alternatively, see [Prisma schema reference](/reference/api-reference/prisma-schema-reference#model-field-scalar-types) for type mappings organized by Prisma type. -### Native type mapping from Prisma to MySQL +### Native type mapping from Prisma to SQLite | Prisma | SQLite | | ---------- | ------------- | diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx index 7e7906bd2f..bc427f6d89 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx @@ -27,17 +27,15 @@ const prismaClientSingleton = () => { return new PrismaClient() } -type PrismaClientSingleton = ReturnType - -const globalForPrisma = globalThis as unknown as { - prisma: PrismaClientSingleton | undefined +declare global { + var prisma: undefined | ReturnType } -const prisma = globalForPrisma.prisma ?? prismaClientSingleton() +const prisma = globalThis.prisma ?? prismaClientSingleton() export default prisma -if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma +if (process.env.NODE_ENV !== 'production') globalThis.prisma = prisma ``` You can extend Prisma Client using a Prisma Client extension by appending the `$extends` client method when instantiating Prisma Client as follows: