That's what I did in package.json file (It was a deploy a Next app on Versel) I just added generate command to the build script:

"scripts": {
    "dev": "next dev",
    "build": "prisma generate && next build",
    "start": "next start",
    "lint": "next lint"
  },

Not sure if it is a correct way, though..

Answer from maxuapro on Stack Overflow
🌐
Prisma
prisma.io › home › generate › generate
prisma generate | Generate Prisma Client & Artifacts | Prisma Documentation
The prisma generate command generates assets like Prisma Client based on the generator and data model blocks defined in your schema.prisma file.
🌐
Answer Overflow
answeroverflow.com › m › 1360867716273275062
Why do I have both `@prisma/client` and `generated/prisma/client` in my import suggestions? - Prisma
April 13, 2025 - Hello, first off the docs say: "The install command invokes prisma generate for you which reads your Prisma schema and generates a version of Prisma Client that is tailored to your models." This was not true for me, when I ran npm i @prisma/clientnpm i @prisma/client, the prisma generate command was not run, I had to run it manually.
🌐
Prisma
prisma.io › home › generators › generators › generators › generators
Generators (Reference) | Prisma Documentation
Generators in your Prisma schema specify what assets are generated when the `prisma generate` command is invoked. This page explains how to configure generators.
🌐
npm
npmjs.com › package › prisma
prisma - npm
Prisma is a next-generation ORM that consists of these tools: Prisma Client: Auto-generated and type-safe query builder for Node.js & TypeScript · Prisma Migrate: Declarative data modeling & migration system · Prisma Studio: GUI to view and edit data in your database ·
      » npm install prisma
    
Published   Jul 20, 2026
Version   7.9.0
Find elsewhere
🌐
NestJS
docs.nestjs.com › recipes › prisma
Prisma | NestJS - A progressive Node.js framework
To install Prisma Client in your project, run the following command in your terminal: ... Once installed, you can run the generate command to generate the types and Client needed for your project.
🌐
DEV Community
dev.to › prisma › friendly-data-modeling-auto-generated-editable-migrations-for-platformatic-with-prisma-dib
Friendly data modeling & auto-generated, editable migrations for Platformatic with Prisma - DEV Community
February 5, 2023 - The Prisma schema uses an intuitive and human-readable language called the Prisma Schema language. The schema file is composed of three main components: Data source: Defines your database connection details such as the provider and database's connection string. Generator: Defines the assets generated when specific Prisma commands are invoked.
🌐
DEV Community
dev.to › edriso › what-is-prisma-client-and-why-do-i-have-to-keep-running-prisma-generate-ihb
What is Prisma Client, and why do I have to keep running prisma generate? - DEV Community
May 8, 2026 - The schema is the recipe book. The database is the kitchen. Prisma Client is the menu. prisma generate is the act of printing a new menu.
🌐
Amplication
docs.amplication.com › plugin-development › node-plugin-events › create-prisma-schema
Create Prisma Schema - Amplication
Represents the data source type of Prisma provider (PostgreSQL, MySQL, MongoDB, etc.). ... A generator determines which assets are created when you run the Prisma generate command.
🌐
1Password
1password.com › downloads › browser-extension
Browser Password Manager: Download | 1Password
Generate strong and unique passwords for every online account and sign in to a growing number of websites with passkeys, a fast and secure alternative to passwords.
🌐
Prisma
prisma.io › home › prisma cli reference › prisma cli reference › prisma cli reference
Prisma CLI reference | Prisma Documentation
The command scaffolds a Prisma schema and deploys it to a fresh Prisma Postgres instance. Note that it requires you to be authenticated with the PDP Console, If you run it for the first time without being authenticated, the command will open ...
🌐
PubMed
pubmed.ncbi.nlm.nih.gov › 42030514
Cultural adaptations made to existing implementation ...
January 7, 2026 - PubMed® comprises more than 40 million citations for biomedical literature from MEDLINE, life science journals, and online books. Citations may include links to full text content from PubMed Central and publisher web sites.
🌐
OpenAI
openai.com › prism
Prism | A free, LaTeX Editor and AI-native workspace for scientists | OpenAI
Write, edit, and collaborate on scientific documents in LaTeX with Prism—the free LaTeX editor and scientific workspace integrating ChatGPT and Codex into research and writing.
🌐
SitePoint
sitepoint.com › blog › ai › claude code 2.1: the complete xhigh and auto-verification guide (2026)
Claude Code 2.1: The Complete xHigh and Auto-Verification Guide (2026)
April 22, 2026 - Generating Prisma migration scripts with rollback verification is another strong xhigh use case. Custom verification commands can include prisma validate or prisma migrate diff to validate migration logic without touching the database.
🌐
YouTube
youtube.com › watch
Generate Prisma Client (3/5) - YouTube
Website: https://www.prisma.ioQuickstart: https://www.prisma.io/docs/quickstartDocumentation: https://www.prisma.io/docs/Beta announcement: https://www.prism...
Published   March 31, 2020
🌐
PRISMA statement
prisma-statement.org › prisma-2020-flow-diagram
PRISMA 2020 flow diagram — PRISMA statement
PRISMA 2020 flow diagram for updated systematic reviews which included searches of databases, registers and other sources (Word) Flow diagrams can also be generated using a Shiny App available at https://www.eshackathon.org/software/PRISMA2020.html