Martí Crespí
10/18/2021, 10:16 AM[Nest] 8 - 10/18/2021, 10:08:42 AM LOG [InstanceLoader] InternalModule dependencies initialized +1ms
[Nest] 8 - 10/18/2021, 10:08:42 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +4ms
[Nest] 8 - 10/18/2021, 10:08:42 AM LOG [InstanceLoader] CronModule dependencies initialized +1ms
[Nest] 8 - 10/18/2021, 10:08:42 AM LOG [InstanceLoader] GraphqlModule dependencies initialized +0ms
[Nest] 8 - 10/18/2021, 10:08:42 AM LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +2ms
[Nest] 8 - 10/18/2021, 10:08:42 AM LOG [InstanceLoader] GraphQLModule dependencies initialized +1ms
(node:8) UnhandledPromiseRejectionWarning: Error: error: Environment variable not found: DATABASE_URL.
--> schema.prisma:12
|
11 | provider = "postgresql"
12 | url = env("DATABASE_URL")
|
Validation Error Count: 1
at LibraryEngine.loadEngine (/node_modules/@prisma/client/runtime/index.js:26778:21)
at async LibraryEngine.instantiateLibrary (/node_modules/@prisma/client/runtime/index.js:26708:7)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see <https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode>). (rejection id: 1)
(node:8) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:8) UnhandledPromiseRejectionWarning: Error: error: Environment variable not found: DATABASE_URL.
--> schema.prisma:12
|
11 | provider = "postgresql"
12 | url = env("DATABASE_URL")