We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f594242 commit 86748acCopy full SHA for 86748ac
packages/cli-kit/src/public/node/context/fqdn.ts
@@ -139,5 +139,8 @@ export function normalizeStoreFqdn(store: string): string {
139
}
140
const containDomain = (storeFqdn: string) =>
141
storeFqdn.endsWith('.myshopify.com') || storeFqdn.endsWith('shopify.io') || storeFqdn.endsWith('.shop.dev')
142
- return containDomain(storeFqdn) ? storeFqdn : addDomain(storeFqdn)
+ const normalizedFqdn = containDomain(storeFqdn) ? storeFqdn : addDomain(storeFqdn)
143
+ // Use dev-api domain for OAuth redirects in local environment
144
+ // See: https://github.com/Shopify/dev_server?tab=readme-ov-file#shop-redirects
145
+ return normalizedFqdn.replace('.my.shop.dev', '.dev-api.shop.dev')
146
0 commit comments