Repository navigation
Conversation
stencil start previewed the site's primary URL for the selected channel. For headless channels such as Catalyst, the primary URL is the headless frontend, which does not serve /stencil-version-check, so the CLI failed with a misleading "store does not exist" 404. Use the site's canonical URL for channels whose platform is not bigcommerce, which is where their Stencil storefront (and checkout) is served. Stencil channels keep using the primary URL. The version check error now also shows the requested URL and, on a 404, suggests --channelUrl. Fixes TRAC-2123 Refs LTRAC-2234
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?
stencil startpreviews the selected channel's primary site URL. For headless channels such as Catalyst, that URL is the headless frontend. The channel's Stencil storefront (and checkout) lives at the canonical URL instead, so the version check 404s and the CLI reports that the store doesn't exist.getStoreChannelsnow attaches each channel'splatformto its site entry.stencil startuses the site'scanonicalURL when the platform isn'tbigcommerce, and falls back tourlwhen there's no canonical entry.platformis unknown and the CLI keeps the old behaviour.--channelUrl.Needs verification against a real Catalyst channel: that the canonical host serves the full preview (not only checkout), and that headless channels report a platform other than
bigcommerce.--channelUrl <canonical url>remains the workaround in the meantime.Tickets / Documentation
cc @bigcommerce/storefront-team