Skip to content

Commit 717c65f

Browse files
committed
WEB-129 Remove redundant prisma generate step from CI, update config not to raise when DIRECT_URL is not set
1 parent ea02849 commit 717c65f

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ jobs:
2222
- name: Install dependencies
2323
run: npm ci
2424

25-
- name: Generate Prisma Client
26-
run: npx prisma generate
27-
2825
- name: Lint
2926
run: npm run lint
3027

prisma.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "dotenv/config";
2-
import { defineConfig, env } from "prisma/config";
2+
import { defineConfig } from "prisma/config";
33

44
export default defineConfig({
55
schema: "prisma/schema.prisma",
@@ -8,6 +8,6 @@ export default defineConfig({
88
seed: "tsx prisma/seed.ts",
99
},
1010
datasource: {
11-
url: env("DIRECT_URL"),
11+
url: process.env.DIRECT_URL ?? "",
1212
},
1313
});

0 commit comments

Comments
 (0)