Repository navigation
fix: unblock fresh clone install and docker setup - #2
Merged
Merged
Conversation
Collaborator
|
Thanks @khossdev for the fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
process.env['DATABASE_URL']instead ofenv()inapps/api/prisma.config.tssoprisma generate(postinstall) works without a.env.allowBuildsbooleans inpnpm-workspace.yamland remove obsoleteonlyBuiltDependencies..envfiles are created beforepnpm install.prisma.config.tsin the API typecheck config.Fixes #1
Why
A fresh clone following the docs fails before the stack can start:
env('DATABASE_URL')throws when unset, sopnpm installdies on Prisma postinstall.allowBuildsplaceholders (set this to true or false) leave builds unreviewed under pnpm 11strictDepBuilds, so install /pnpm docker:upexit withERR_PNPM_IGNORED_BUILDS.Testing
pnpm installsucceeds after.envcopy (Prisma client generated)pnpm installno longer reportsERR_PNPM_IGNORED_BUILDS(lifecycle scripts run for prisma, argon2, esbuild, etc.)pnpm docker:upstarts the compose stack.envpresent →pnpm db:migratestill works.env→pnpm installstill succeeds (Prisma generate only)Screenshots
N/A — setup / config fix, no UI changes.