Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/cli-kit/src/public/node/context/fqdn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,8 @@ export function normalizeStoreFqdn(store: string): string {
}
const containDomain = (storeFqdn: string) =>
storeFqdn.endsWith('.myshopify.com') || storeFqdn.endsWith('shopify.io') || storeFqdn.endsWith('.shop.dev')
return containDomain(storeFqdn) ? storeFqdn : addDomain(storeFqdn)
const normalizedFqdn = containDomain(storeFqdn) ? storeFqdn : addDomain(storeFqdn)
// Use dev-api domain for OAuth redirects in local environment
// See: https://github.com/Shopify/dev_server?tab=readme-ov-file#shop-redirects
return normalizedFqdn.replace('.my.shop.dev', '.dev-api.shop.dev')
}
Loading