Repository navigation
Netlify deploy error due to missing pre-build script in package.json - #1
Merged
Merged
Conversation
…(69e4a2ff4d6330e2f193e457)
Deploying 4h-project-page with
|
| Latest commit: |
b686754
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3b5fd63d.4h-project-page.pages.dev |
| Branch Preview URL: | https://agent-script-in-packagejson.4h-project-page.pages.dev |
✅ Deploy Preview for 4h-project-page ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for 4h-home-page ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.

🔗 View agent run: https://app.netlify.com/projects/4h-project-page/agent-runs/69e4a2ff4d6330e2f193e457
🤖 Agent: Claude
💬 Prompt: The Netlify deploy errored, with the following guidance provided:
Diagnosis
✅ Result: The Netlify deploy failed because its configured build command
pnpm --filter ./apps/project-page run pre-buildreferenced a script that did not exist inapps/project-page/package.json, producingERR_PNPM_RECURSIVE_RUN_NO_SCRIPT.The fix added a
pre-buildscript toapps/project-page/package.jsonthat runsPUBLIC_PRE_BUILD=true astro build, matching the convention already used byapps/home-page. This keeps the Netlify UI build command unchanged and preserves the existing behavior where thePUBLIC_PRE_BUILDflag — consumed byapps/project-page/src/i18n/utils.tsto switch language URLs to thepre./pre-<lang>.subdomains — is set for pre-production deploys.No other files were modified.