Skip to content

Commit f21ef66

Browse files
add cjs module format to nestjs guide (#7354)
* add cjs module format * white space removed
1 parent 5e47f0b commit f21ef66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/800-guides/430-nestjs.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@ This creates a new `prisma` directory with the following contents:
7373
- `prisma.config.ts`: A configuration file for your projects
7474
- `.env`: A [dotenv](https://github.com/motdotla/dotenv) file, typically used to store your database credentials in a group of environment variables
7575

76-
### 2.3. Set the generator output path
76+
### 2.3. Set the generator output path and update the module format
7777

78-
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:
78+
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`:
7979

8080
```prisma file=prisma/schema.prisma
8181
generator client {
8282
provider = "prisma-client"
8383
output = "../src/generated/prisma"
84+
// add-next-line
85+
moduleFormat = "cjs"
8486
}
8587
```
8688

0 commit comments

Comments
 (0)