chore(db): 🛂 Use env file from builder for db
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,3 +10,4 @@ authenticatedState.json
|
|||||||
playwright-report
|
playwright-report
|
||||||
dist
|
dist
|
||||||
test-results
|
test-results
|
||||||
|
**/api/scripts
|
||||||
|
|||||||
@@ -101,6 +101,7 @@
|
|||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"next-transpile-modules": "^9.0.0",
|
"next-transpile-modules": "^9.0.0",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
|
"firebase-admin": "^10.0.2",
|
||||||
"typescript": "^4.5.5"
|
"typescript": "^4.5.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
DATABASE_URL=postgresql://postgres:@localhost:5432/typebot
|
|
||||||
@@ -2,21 +2,22 @@
|
|||||||
"name": "db",
|
"name": "db",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"main": "./index.tsx",
|
"main": "./index.ts",
|
||||||
"types": "./index.tsx",
|
"types": "./index.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prisma": "^3.8.1",
|
"prisma": "^3.9.2",
|
||||||
"ts-node": "^10.4.0",
|
"ts-node": "^10.5.0",
|
||||||
"typescript": "^4.5.5"
|
"typescript": "^4.5.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/client": "^3.8.1"
|
"@prisma/client": "^3.9.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "dotenv -e .env yarn prisma db push && BROWSER=none yarn prisma studio",
|
"dev": "dotenv -e ../../apps/builder/.env.local yarn prisma db push && yarn start:sutdio ",
|
||||||
|
"start:sutdio": "dotenv -e ../../apps/builder/.env.local -v BROWSER=none yarn prisma studio",
|
||||||
"build": "yarn migration:push",
|
"build": "yarn migration:push",
|
||||||
"migration:push": "dotenv -e .env yarn prisma db push",
|
"migration:push": "dotenv -e ../../apps/builder/.env.local yarn prisma db push",
|
||||||
"migration:create": "dotenv -e .env yarn prisma migrate dev",
|
"migration:create": "dotenv -e ../../apps/builder/.env.local yarn prisma migrate dev",
|
||||||
"migration:reset": "dotenv -e .env yarn prisma migrate reset"
|
"migration:reset": "dotenv -e ../../apps/builder/.env.local yarn prisma migrate reset"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user