mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
fix(script): added script envprisma in root package.json
dotenv loads all environment variable before running prisma:migrate-dev script
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
/// <reference types="@documenso/tsconfig/process-env.d.ts" />
|
||||
require('dotenv').config();
|
||||
|
||||
export const getDatabaseUrl = () => {
|
||||
if (process.env.NEXT_PRIVATE_DATABASE_URL) {
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "5.3.1",
|
||||
"dotenv": "^16.3.1",
|
||||
"dotenv-cli": "^7.3.0",
|
||||
"prisma": "5.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user