Add postinstall and vercel-build scripts to generate Prisma Client#3
Draft
Copilot wants to merge 4 commits into
Draft
Add postinstall and vercel-build scripts to generate Prisma Client#3Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…-build) Co-authored-by: naveenkumar29052006 <72962565+naveenkumar29052006@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add postinstall and vercel-build scripts for Prisma Client generation
Add postinstall and vercel-build scripts to generate Prisma Client
Nov 17, 2025
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.
Vercel builds fail with "@prisma/client did not initialize yet" because the Prisma Client isn't generated before Next.js imports it during build-time page data collection.
Changes
postinstall: Runsprisma generateautomatically afternpm install, ensuring the client exists before any build stepvercel-build: Explicit build command that runsprisma generate && next buildfor redundancy in Vercel's deployment pipelineThe
postinstallhook triggers during Vercel's install phase, whilevercel-buildprovides a fallback that Vercel can explicitly invoke.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint.prisma.io/usr/local/bin/node /home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/prisma/build/child {"product":"prisma","version":"6.19.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-17T09:10:45Z","project_hash":"01344839","cli_path":"/home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/.bin/prisma","cli_path_hash":"6b31b5a6","endpoint":"REDACTED","disable":false,"arch":"x64","os":"linux","node_version":"v20.19.5","ci":true,"ci_name":"GitHub Actions","command":"generate","schema_providers":["postgresql"],"schema_preview_features":[],"schema_generators_providers":["prisma-client-js"],"cache_file":"/home/REDACTED/.cache/checkpoint-nodejs/prisma-6b31b5a6","cache_duration":43200000,"remind_duration":172800000,"force":false,"timeout":5000,"unref":true,"child_path":"/home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/prisma/build/child","client_event_id":"","previous_client_event_id":"","check_if_update_available":true}(dns block)/usr/local/bin/node /home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/prisma/build/child {"product":"prisma","version":"6.19.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-17T09:10:54Z","project_hash":"01344839","cli_path":"/home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/.bin/prisma","cli_path_hash":"6b31b5a6","endpoint":"REDACTED","disable":false,"arch":"x64","os":"linux","node_version":"v20.19.5","ci":true,"ci_name":"GitHub Actions","command":"generate","schema_providers":["postgresql"],"schema_preview_features":[],"schema_generators_providers":["prisma-client-js"],"cache_file":"/home/REDACTED/.cache/checkpoint-nodejs/prisma-6b31b5a6","cache_duration":43200000,"remind_duration":172800000,"force":false,"timeout":5000,"unref":true,"child_path":"/home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/prisma/build/child","client_event_id":"","previous_client_event_id":"","check_if_update_available":true}(dns block)/usr/local/bin/node /home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/prisma/build/child {"product":"prisma","version":"6.19.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-17T09:12:43Z","project_hash":"01344839","cli_path":"/home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/.bin/prisma","cli_path_hash":"6b31b5a6","endpoint":"REDACTED","disable":false,"arch":"x64","os":"linux","node_version":"v20.19.5","ci":true,"ci_name":"GitHub Actions","command":"generate --postinstall \"UNABLE_TO_FIND_POSTINSTALL_TRIGGER__ENVAR_MISSING\"","schema_providers":["postgresql"],"schema_preview_features":[],"schema_generators_providers":["prisma-client-js"],"cache_file":"/home/REDACTED/.cache/checkpoint-nodejs/prisma-6b31b5a6","cache_duration":43200000,"remind_duration":172800000,"force":false,"timeout":5000,"unref":true,"child_path":"/home/REDACTED/work/SolUPI-V2/SolUPI-V2/node_modules/prisma/build/child","client_event_id":"","previous_client_event_id":"","check_if_update_available":true}(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.