diff --git a/.gitignore b/.gitignore index d8573ff96a..25078d214f 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ yarn-error.log* # wrangler project .dev.vars .wrangler/ - +.idea # Others .env .cursor diff --git a/content/200-orm/100-prisma-schema/10-overview/04-location.mdx b/content/200-orm/100-prisma-schema/10-overview/04-location.mdx index 297af71b8b..d688b83426 100644 --- a/content/200-orm/100-prisma-schema/10-overview/04-location.mdx +++ b/content/200-orm/100-prisma-schema/10-overview/04-location.mdx @@ -80,18 +80,19 @@ You can do this in either of three ways: } ``` - set the `schema` property in [`prisma.config.ts`](/orm/reference/prisma-config-reference#schema) ( for Prisma ORM v7): - ```ts +```ts import { defineConfig, env } from 'prisma/config' import 'dotenv/config' export default defineConfig({ - schema: 'prisma/schema.prisma', + - schema: 'prisma/schema.prisma', + + schema: 'prisma', migrations: { - path: 'prisma/migrations', + 'prisma/migrations', seed: 'tsx prisma/seed.ts', }, - datasource: { - url: env('DATABASE_URL'), + { + env('DATABASE_URL'), }, }) ```