Setup

Integrate Prisma ORM easily into your Nuxt app.


Installation

  1. Add @prisma/nuxt dependency to your project:
npm
npm install -D @prisma/nuxt
yarn
yarn add -D @prisma/nuxt
pnpm
pnpm add -D @prisma/nuxt
  1. Add it to your modules section in your nuxt.config:
export default defineNuxtConfig({
  modules: ['@prisma/nuxt']
})
  1. Activate the module prompts for setting up Prisma ORM:
npm
npm run dev
yarn
yarn dev
pnpm
pnpm dev

The prompts will direct you to:

That's it! You can now use Prisma ORM in your Nuxt app ✨

Options

You can customize the module's behavior by using the prisma property in nuxt.config:

nuxt.config.ts
export default defineNuxtConfig({
  prisma: {
    // Options
  }
})

See the module options.

Table of Contents