fix(api): use connection string from .env (#50201)

This commit is contained in:
Oliver Eyton-Williams
2023-04-28 00:06:43 +02:00
committed by GitHub
parent 97b1807d5f
commit 1567894c36
2 changed files with 20 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
"@fastify/type-provider-typebox": "3.1.0",
"@types/express-session": "1.17.7",
"@types/supertest": "2.0.12",
"dotenv-cli": "7.2.1",
"jest": "29.5.0",
"pino-pretty": "10.0.0",
"prisma": "4.13.0",
@@ -55,7 +56,7 @@
"develop": "nodemon src/server.ts",
"start": "FREECODECAMP_NODE_ENV=production node dist/server.js",
"test": "jest --force-exit",
"prisma": "MONGOHQ_URL=mongodb://localhost:27017/freecodecamp?directConnection=true prisma",
"prisma": "dotenv -e ../.env prisma",
"postinstall": "prisma generate"
},
"version": "0.0.1"

18
pnpm-lock.yaml generated
View File

@@ -210,6 +210,9 @@ importers:
'@types/supertest':
specifier: 2.0.12
version: 2.0.12
dotenv-cli:
specifier: 7.2.1
version: 7.2.1
jest:
specifier: 29.5.0
version: 29.5.0(@types/node@18.16.0)(ts-node@10.9.1)
@@ -15758,6 +15761,21 @@ packages:
dependencies:
is-obj: 2.0.0
/dotenv-cli@7.2.1:
resolution: {integrity: sha512-ODHbGTskqRtXAzZapDPvgNuDVQApu4oKX8lZW7Y0+9hKA6le1ZJlyRS687oU9FXjOVEDU/VFV6zI125HzhM1UQ==}
hasBin: true
dependencies:
cross-spawn: 7.0.3
dotenv: 16.0.3
dotenv-expand: 10.0.0
minimist: 1.2.8
dev: true
/dotenv-expand@10.0.0:
resolution: {integrity: sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==}
engines: {node: '>=12'}
dev: true
/dotenv-expand@5.1.0:
resolution: {integrity: sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==}