Repository navigation
Fix: A new single-commit storefront repository now builds on its first Vercel deployment (V-3843) - #329
Fix: A new single-commit storefront repository now builds on its first Vercel deployment (V-3843)#329damianlegawiec wants to merge 3 commits into
Conversation
…(V-3838) A Store Pickup order's order-placed page showed only the method and its cost, followed by the buyer's own address as the shipping address. Each pickup delivery now names the location to collect from, with its address and collection instructions, and the shipping address is hidden when every delivery is a pickup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WCEEKiKCrrVobc2aQfDXwA
…t Vercel deployment (V-3843)
The ignored build step ran `git diff --quiet HEAD^ HEAD -- .`. In a repository with one commit, such as the one the Setup storefront task creates, HEAD^ does not exist: git exits with 128 ("fatal: bad revision 'HEAD^'") and Vercel stopped the deployment without building, on every redeploy too.
The command now checks that HEAD^ exists first. With no parent commit (a new repository, or a clone too shallow to include it) it exits 1 and Vercel builds; otherwise it skips the build only when the latest commit changes nothing in the storefront directory, as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WCEEKiU2S25f5FDPJkYrqg
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Strix Security Review✅ No open security findings. PR summary: Adds a parent-commit existence check to the `vercel.json` ignore command so a single-commit storefront repository deploys instead of failing, and extends the order-placed page to render the pickup location (name, address, instructions) and hide the shipping address when every fulfillment is collected in store. Review summaryThis PR fixes the ignored-build step for single-commit repositories and reworks the order confirmation page so pickup orders show the collection location instead of the buyer's shipping address. The Ruled out (5)
Review 1 on this PR · Reviewed by Strix |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 30 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Closing in favour of #330. This branch was accidentally built on top of the unrelated V-3838 pickup-location commits. #330 carries only the one-line Generated by Claude Code |
A storefront repository created by the Setup storefront task has a single commit. Its first Vercel deployment stopped right after cloning, and redeploying failed the same way:
Cause
The ignored build step added in #294 compares the latest commit with its parent. A repository with one commit has no parent, so
git diffexits with 128 instead of 0 (skip) or 1 (build), and Vercel stops the deployment without building.Fix
vercel.jsonnow checks that the parent commit exists before diffing:With no parent commit, the check exits 1 and Vercel builds. Otherwise the behaviour from #294 is unchanged: a commit that touches nothing in the storefront directory is skipped.
Verification
Ran the command in throwaway repositories (storefront in
apps/sf, server inserver/):server/--depth 1(no parent fetched)--depth 2, storefront changedVercel's shallow clone normally includes the parent; if it ever didn't, the deployment now builds rather than failing. No README or docs mention this setting, so none needed updating.
pnpm run checkpasses.Linear: V-3843
Generated by Claude Code