Skip to content

Only treat .myshopify.io as a normalized store FQDN suffix#7847

Open
PhilippeCollin wants to merge 1 commit into
mainfrom
fix-normalize-store-fqdn-suffix
Open

Only treat .myshopify.io as a normalized store FQDN suffix#7847
PhilippeCollin wants to merge 1 commit into
mainfrom
fix-normalize-store-fqdn-suffix

Conversation

@PhilippeCollin

@PhilippeCollin PhilippeCollin commented Jun 17, 2026

Copy link
Copy Markdown

The shopify.io suffix check matched any domain ending in shopify.io (e.g. notshopify.io); tighten it to .myshopify.io.

*.myshopify.io is the hostname the legacy local dev server assigns to stores (see dev-server-2016.ts), which is why it's treated as already-normalized.

Copilot AI review requested due to automatic review settings June 17, 2026 16:13
@PhilippeCollin PhilippeCollin requested review from a team as code owners June 17, 2026 16:13
@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Jun 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Tightens normalizeStoreFqdn’s “already-normalized” suffix detection so that only the intended local-dev store domain .myshopify.io is treated as normalized (instead of any shopify.io-ending domain), preventing inputs like evilshopify.io from bypassing normalization.

Changes:

  • Narrowed the suffix check from shopify.io to .myshopify.io in normalizeStoreFqdn.
  • Added targeted tests ensuring evilshopify.io-style domains are not treated as normalized while preserving .myshopify.io in local.
  • Added a changeset documenting the patch.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/cli-kit/src/public/node/context/fqdn.ts Restricts normalized-suffix recognition to .myshopify.io (plus existing .myshopify.com/.shop.dev).
packages/cli-kit/src/public/node/context/fqdn.test.ts Adds regression tests for shopify.io sibling/nested domains and a local .myshopify.io preservation test.
.changeset/normalize-store-fqdn-suffix.md Records the behavior change as a patch release note.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@graygilmore graygilmore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I can't think of any other *shopify.io that we'd use through here. Tbh we might even just be able to drop myshopify.io altogether but we can poke at that later.

Assisted-By: devx/6a08152b-0dac-4994-ac1a-d0471a9ed4a9
@PhilippeCollin PhilippeCollin force-pushed the fix-normalize-store-fqdn-suffix branch from f5cde04 to d22ad61 Compare June 17, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants