Documentation != Reality, NEXT_PRIVATE_DIRECT_DATABASE_URL being not required
Issue Description
Spinning up Documenso for the first time in my kubernetes cluster.
Since this is a lower end implementation, I did not declare "NEXT_PRIVATE_DIRECT_DATABASE_URL", and according to the documentation ( https://docs.documenso.com/docs/self-hosting/configuration/environment#database-configuration ) "Defaults to NEXT_PRIVATE_DATABASE_URL when not set", and I have NEXT_PRIVATE_DATABASE_URL declared.
However the container spat out:
️ Running database migrations...
Prisma schema loaded from ../../packages/prisma/schema.prisma
Error: Prisma schema validation - (get-config wasm)
Error code: P1012
error: Environment variable not found: NEXT_PRIVATE_DIRECT_DATABASE_URL.
--> /app/packages/prisma/schema.prisma:24
|
23 | url = env("NEXT_PRIVATE_DATABASE_URL")
24 | directUrl = env("NEXT_PRIVATE_DIRECT_DATABASE_URL")
|
Validation Error Count: 1
[Context: getConfig]
Prisma CLI Version : 6.19.3
npm noticeSuggesting the declaration is actually required. Er-go, this reads as a bug to me, or perhaps inaccurate documentation.
This is with the container version as of writing, which I think is "v2.16.0" (I'm using the "latest" tag).
Steps to Reproduce
Outlined above
Expected Behavior
Outlined above
Current Behavior
Outlined above
Screenshots (optional)
No response
Operating System [e.g., Windows 10]
No response
Browser [e.g., Chrome, Firefox]
No response
Version [e.g., 2.13.0]
2.16.0
Please check the boxes that apply to this issue report.
- I have searched the existing issues to make sure this is not a duplicate.
- I have provided steps to reproduce the issue.
- I have included relevant environment information.
- I have included any relevant screenshots.
- I understand that this is a voluntary contribution and that there is no guarantee of resolution.
Source: documenso/documenso