Skip to content

Commit c029b38

Browse files
committed
Adds more Prisma documentation
1 parent d6c869e commit c029b38

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

docs/config/config-file.mdx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,12 @@ This is usually required if you are using certain ORMs, like TypeORM, that requi
397397

398398
If you are using Prisma, you should use the prisma build extension.
399399

400-
- Automatically handles copying prisma files to the build directory.
401-
- Generates the prisma client during the deploy process
400+
- Automatically handles copying Prisma files to the build directory
401+
- Generates the Prisma client during the deploy process
402402
- Optionally will migrate the database during the deploy process
403-
- Support for TypedSQL and multiple schema files.
403+
- Support for TypedSQL and multiple schema files
404+
- You can use `prismaSchemaFolder` to specify just the directory containing your schema file, instead of the full path
405+
- You can add the extension twice if you have multiple separate schemas in the same project (example below)
404406

405407
You can use it for a simple Prisma setup like this:
406408

@@ -522,6 +524,21 @@ These environment variables are only used during the build process and are not e
522524

523525
</Note>
524526

527+
If you have multiple separate schemas in the same project you can add the extension multiple times:
528+
529+
```ts
530+
prismaExtension({
531+
schema: 'prisma/schema/main.prisma',
532+
version: '6.2.0',
533+
migrate: false,
534+
}),
535+
prismaExtension({
536+
schema: 'prisma/schema/secondary.prisma',
537+
version: '6.2.0',
538+
migrate: false,
539+
}),
540+
```
541+
525542
#### syncEnvVars
526543

527544
The `syncEnvVars` build extension replaces the deprecated `resolveEnvVars` export. Check out our [syncEnvVars documentation](/deploy-environment-variables#sync-env-vars-from-another-service) for more information.

0 commit comments

Comments
 (0)