diff --git a/CHANGELOG.md b/CHANGELOG.md index a87f51ace..1c5d2554b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Note: For changes to the API, see https://shopify.dev/changelog?filter=api ## Unreleased +- [#1395](https://github.com/Shopify/shopify-api-ruby/pull/1395) use correct internal admin host for 1P app development ## 14.11.0 - [#1386](https://github.com/Shopify/shopify-api-ruby/pull/1386) Add support for 2025-07 API version diff --git a/lib/shopify_api/auth/oauth.rb b/lib/shopify_api/auth/oauth.rb index 807b563ee..eedd19aa4 100644 --- a/lib/shopify_api/auth/oauth.rb +++ b/lib/shopify_api/auth/oauth.rb @@ -114,7 +114,8 @@ def auth_base_uri(shop) return "https://#{shop}/admin" unless defined?(DevServer) && shop.include?(".my.shop.dev") # For first-party apps in development only, we leverage DevServer to build the admin base URI - admin_web = T.unsafe(Object.const_get("DevServer")).new("web") # rubocop:disable Sorbet/ConstantsFromStrings + admin_web = T.unsafe(Object.const_get("DevServer")) # rubocop:disable Sorbet/ConstantsFromStrings + .new("admin-web") admin_host = admin_web.host!(nonstandard_host_prefix: "admin") shop_name = shop.split(".").first