-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathprisma.config.ts
More file actions
29 lines (26 loc) · 788 Bytes
/
prisma.config.ts
File metadata and controls
29 lines (26 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* Prisma Configuration for Astrologer Studio
*
* This configuration file is used by Prisma CLI to determine:
* - Which schema file to use
* - Where migrations are stored
* - How to connect to the database
*
* @see https://www.prisma.io/docs/orm/prisma-schema/overview/configuration
*/
import 'dotenv/config'
import { defineConfig } from 'prisma/config'
export default defineConfig({
// PostgreSQL schema - standard location
schema: 'prisma/schema.prisma',
// Migrations directory
migrations: {
path: 'prisma/migrations',
},
// Database connection
datasource: {
// Using process.env directly to avoid errors when DATABASE_URL is not set
// (e.g., during `prisma generate` in CI without a database)
url: process.env.DATABASE_URL ?? '',
},
})