Repository navigation
fix(docs): drop env vars from the deploy button URL - #502
Merged
Merged
Conversation
The deploy URL already installs the Shopify integration via `products`, which connects a new or existing store and auto-configures the storefront credentials on the project. Keeping `env` alongside it made the project creation flow require both values up front — credentials the user cannot have yet when they are about to connect a store through the integration — so the deploy button was effectively blocked. Remove `env` and its `envDescription`/`envLink` companions, which only render when required env vars are set. Note in the page where the credentials come from in the deploy path. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Co-Authored-By: Boris Besemer <[email protected]>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
laugharn
approved these changes
Aug 19, 2026
laugharn
added a commit
that referenced
this pull request
Aug 24, 2026
* Replace hand-rolled WebMCP with Hydrogen's behind a config flag (#504) * Revert "add experimental WebMCP storefront tools (#498)" This reverts commit 600e9ff. Removes the hand-rolled WebMCP implementation, its README/AGENTS-adjacent docs, env token, i18n strings, and cart-client support code. A follow-up PR will implement Hydrogen's WebMCP behind a config flag instead. * feat(template): add Hydrogen WebMCP behind webmcp.isEnabled config flag Replaces the reverted hand-rolled WebMCP implementation with Hydrogen's own. Setting webmcp.isEnabled in lib/config.ts makes the existing ShopifyScripts component load Shopify's storefront webmcp.js on browsers that expose document.modelContext. The Shopify analytics script is now gated independently (shopifyAnalytics) so WebMCP works without enabling analytics, and the shared ShopifyScripts mount turns on when either feature needs it. * Drop README note; rename ShopifyAnalyticsTracker to ShopifyScriptsTracker The README bullet doesn't fit the repo's docs style. The component now mounts ShopifyScripts for WebMCP too, so name it after what it renders. * TEMP: enable webmcp by default for preview deployment * docs: document experimental WebMCP feature Adds an anatomy page for WebMCP with an explicit experimental designation (in-progress browser API, Chrome-flag-only, disabled by default), testing instructions, and a webmcp section in the shop-config reference alongside the other isEnabled flags. * Revert "TEMP: enable webmcp by default for preview deployment" This reverts commit c40f6d1. * Keep storefront detail navigation stable (#506) * fix(template): allow blocking product routes * fix(template): allow blocking content routes * fix(docs): drop env vars from the deploy button URL (#502) * chore(docs): update Geistdocs to 1.20.4 (#508) * chore(docs): update Geistdocs to 1.20.4 * chore(docs): allow agent readability releases * fix(template): scope Shopify proxy routes (#505) * fix(template): proxy Shopify consent requests locally * chore(template): mount Hydrogen scripts by default * fix(template): provide consent banner access token * refactor(template): render consent token as script content * fix(template): proxy versioned Storefront API routes * chore(template): update Hydrogen preview * experiment(template): use Hydrogen cart proxy handler * refactor(template): delegate Shopify routes in proxy * fix(template): scope Shopify proxy routes * chore: bump dependencies * chore: enforce release age for Hydrogen * feat(template): complete Hydrogen cart integration (#512) * feat(template): attribute carts to customer sessions * fix(template): settle concurrent cart totals * fix(template): update pending cart lines * feat(template): attribute carts to storefronts * fix(template): avoid duplicate page views * fix(template): preserve cart line attributes * fix(template): omit invalid storefront ID * feat(template): track cart analytics (#513) * fix(template): integrate Hydrogen discount updates (#514) * fix(template): use Hydrogen discount forms * fix(template): submit discount updates * fix(template): preserve cart mutation errors * feat(template): show line item discounts * fix(template): refine cart discount display * docs: correct cart implementation details (#515) * refactor(template): remove cart seed shim (#516) * Adopt Hydrogen storefront primitives (#524) * Use Hydrogen predictive search * Use Hydrogen collection browse state * Fix taxonomy collection filters * Remove legacy collection filter URLs * Add Hydrogen storefront analytics events * Preserve predictive search loading state * Adopt Hydrogen cart form primitives * Adopt Hydrogen storefront logging * Start 2026-08-23 Hydrogen release * Format integrated Hydrogen docs * Scope client translation messages * Rewrite docs around essential user outcomes * Restore next-step guidance in feature docs * Codify reader-focused docs endings * Provide search client translations * Improve template agent readability (#527) * Improve template agent readability * Remove template test scaffolding * Upgrade template dependencies (#528) * Restore full-bleed collection heroes * Allow server actions through content negotiation --------- Co-authored-by: Boris Besemer <[email protected]> Co-authored-by: Rich Haines <[email protected]>
This branch was successfully deployed
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.
Summary
Removes the required environment variables from the Deploy Button URL on
/docs/getting-started, following the thread feedback.The URL already installs the Shopify integration via
products. That integration connects a new or existing store and auto-configures the Shopify credentials on the project. Keepingenvalongside it made the project creation flow demandNEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKENandNEXT_PUBLIC_SHOPIFY_STORE_DOMAINup front — values the user can't have yet at the moment they're about to connect a store through the integration — so the deploy-button flow was effectively blocked.envDescriptionandenvLinkgo with it: per the docs, both only render when required env vars are set, so they're dead params onceenvis gone.Added one line under the button saying where the credentials come from in the deploy path, since the page no longer implies Vercel will prompt for them.
Before
After
Testing
pnpm build(apps/docs) — passes, 118 static pagespnpm typecheck— passes/docs/getting-started.mdroute emit the trimmed URL, with noenv/envDescription/envLinkanywhere in the outputproductsJSON still decodes and the deploy URL returns 200main, untouched here:pnpm lintreports anoxfmtissue inapp/[lang]/(home)/components/one-two-section.tsx, andpnpm typecheckfails before a build has generated the Next.jsLayoutProps/RouteContextglobalsNote for the reviewer
apps/template/README.mdhas a second deploy button that still carriesenv. I left it alone: that URL has noproductsparam, so nothing would supply the credentials if the prompt were removed. Unifying it with this one (add the integration, then dropenv) is a separate call — happy to fold it in if you want them consistent.No changeset —
docsis in theignorelist in.changeset/config.json.🤖 Generated with Claude Code