title: AppBridgeError INVALID_CONFIG: host must be provided
body: <p>I am facing an error while trying to complete the official shopify <a href="https://shopify.dev/tutorials/build-a-shopify-app-with-node-and-react/build-your-user-interface-with-polaris#add-shopify-app-bridge" rel="noreferrer">tutorial about developing shopify app</a>.</p>
  <p>I have been following the tutorial step by step but even then ran in to problem where the error is thrown that my config file is invalid as it does not contain the host.</p>
  <p>My _app.js file code is as follow:</p>
  <pre><code>import React from &quot;react&quot;;
  import App from &quot;next/app&quot;;
  import Head from &quot;next/head&quot;;
  import { AppProvider, Frame } from &quot;@shopify/polaris&quot;;
  import &quot;@shopify/polaris/dist/styles.css&quot;;
  import translations from &quot;@shopify/polaris/locales/en.json&quot;;
  import { Provider } from &quot;@shopify/app-bridge-react&quot;;
  import ClientRouter from &quot;../components/ClientRouter&quot;;
  
  class MyApp extends App {
    render() {
      const { Component, pageProps, shopOrigin } = this.props;
      const config = {
        apiKey: API_KEY,
        shopOrigin,
        forceRedirect: true,
      };
      console.log(config);
      return (
        &lt;React.Fragment&gt;
          &lt;Head&gt;
            &lt;title&gt;Sample App&lt;/title&gt;
            &lt;meta charSet=&quot;utf-8&quot; /&gt;
          &lt;/Head&gt;
          &lt;Provider config={config}&gt;
            &lt;ClientRouter /&gt;
            &lt;AppProvider i18n={translations}&gt;
              &lt;Frame&gt;
                &lt;Component {...pageProps} /&gt;
              &lt;/Frame&gt;
            &lt;/AppProvider&gt;
          &lt;/Provider&gt;
        &lt;/React.Fragment&gt;
      );
    }
  }
  MyApp.getInitialProps = async ({ ctx }) =&gt; {
    return {
      shopOrigin: ctx.query.shop,
    };
  };
  export default MyApp;
  </code></pre>
  <p>the console for the config file gives the right shopOrigin.
  Ill be thankful if anyone helps</p>