Skip to content

Commit 8ee34b9

Browse files
authored
Merge pull request #852 from PayButton/chore/dont-seed-prod
chore: don't seed in prod
2 parents 6b470fb + 89c31bb commit 8ee34b9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

prisma/seed.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export async function ignoreConflicts (callback: Function): Promise<void> {
2525
}
2626

2727
async function main (): Promise<void> {
28+
// don't seed in prod
29+
if (process.env.NODE_ENV === 'production' || process.env.ENVIRONMENT === 'production') return
30+
2831
// create networks
2932
if (await prisma.network.count() === 0) {
3033
await prisma.network.createMany({ data: networks })

0 commit comments

Comments
 (0)