-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hello there!
I wanted to attempt work on a Docker image for the Nerimity backend so I could run it on my server properly, but in doing so, I wanted to first test the system locally. In doing so, I came across this error:
> pnpm run prisma:generate
> nerimity-server@1.0.0 prisma:generate C:\Users\Ingwie Phoenix\work\nerimity-server
> prisma generate
Failed to load config file "C:\Users\Ingwie Phoenix\work\nerimity-server" as a TypeScript/JavaScript module. Error: PrismaConfigEnvError: Cannot resolve environment variable: DATABASE_URL.
ELIFECYCLE Command failed with exit code 1.
This seemingly comes from here:
nerimity-server/prisma.config.ts
Lines 9 to 11 in 3c7f6bc
| datasource: { | |
| url: env('DATABASE_URL'), | |
| }, |
I am not exactly familiar with Prisma, but I can see that the generation options are specified in prisma/schema.prisma as the docs would suggest.
What is the correct way to circumvent this while building the generator, so that the rest of the project properly builds/bundles?
Thanks and kind regards!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels