When using Polaris, you don’t need to go through the initialization of the Shopify App Bridge as described in the docs. Instead, configure the connection to the Shopify admin through the app provider component, which must wrap all components in an embedded app. This component initializes the Shopify App Bridge using the
apiKey you provide. The
apiKey attribute is required and can be found in the Shopify Partner Dashboard.