Fix theme dev storefront host for preview stores#7667
Draft
alfonso-noriega wants to merge 1 commit into
Draft
Conversation
This was referenced May 29, 2026
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
4 tasks
2a56df6 to
a752730
Compare
a752730 to
3424286
Compare
5be05a2 to
dbab9b4
Compare
Contributor
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/node/local-storage.d.ts@@ -34,6 +34,19 @@ export declare class LocalStorage<T extends Record<string, any>> {
* @throws BugError if an unexpected error occurs.
*/
delete<TKey extends keyof T>(key: TKey): void;
+ /**
+ * Get every pair currently held in the local storage.
+ *
+ * Useful for callers that need to enumerate all stored values without knowing the
+ * full set of keys in advance (for example, a command iterating over every
+ * stored session). The package stores its entire state as a single JSON
+ * object, so this is just a typed wrapper around that object.
+ *
+ * @returns An array of tuples.
+ * @throws AbortError if a permission error occurs.
+ * @throws BugError if an unexpected error occurs.
+ */
+ entries(): [keyof T, T[keyof T]][];
/**
* Clear the local storage (delete all values).
*
|
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.

WHY are these changes introduced?
Preview-store and local development can require separate URLs for Admin API, storefront rendering, theme editor, and shareable storefront preview access.
theme devpreviously had one store host and used it for all generated links and local rendering. That breaks prototype preview-store flows where the Admin API host is usable but browser-facing links need different routing or a backend-generated tokenized preview URL.WHAT is this pull request doing?
storefrontFqdnto theme dev server sessions.storeFqdn, while SFR rendering/proxy/cookie-domain handling can usestorefrontFqdnwhen explicitly provided.theme dev --storefront-host/SHOPIFY_FLAG_STOREFRONT_HOSTfor experiments where storefront rendering differs from--store.theme dev --preview-url/SHOPIFY_FLAG_PREVIEW_URLso preview-store flows can show/open a backend-generated preview URL instead of the standard?preview_theme_id=URL.admin.shop.dev/store/<shop>/themes/<theme>/editor) while preserving the original/admin/themes/...URL for normal stores.How to test your changes?
Automated checks run locally:
Manual smoke test target:
If a preview-store environment needs explicit storefront/preview routing, pass:
Checklist