Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions content/800-guides/430-nestjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ This creates a new `prisma` directory with the following contents:
- `prisma.config.ts`: A configuration file for your projects
- `.env`: A [dotenv](https://github.com/motdotla/dotenv) file, typically used to store your database credentials in a group of environment variables

### 2.3. Set the generator output path
### 2.3. Set the generator output path and update the module format

Specify your output `path` for the generated Prisma client either by passing `--output ../src/generated/prisma` during `prisma init`, or directly in your Prisma schema:
Specify your output `path` for the generated Prisma client by either passing `--output ../src/generated/prisma` during `prisma init` or directly in your Prisma schema. Also, update the `moduleFormat` to `cjs`:

```prisma file=prisma/schema.prisma
generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
// add-next-line
moduleFormat = "cjs"
}
```

Expand Down
Loading