title: Shopify App Proxy - How to include my asset files in the request response | React / JS / Heroku
body: <p>I'm building a Shopify App with React &amp; Express, deployed via Heroku, which I'm trying to embed into my storefront using an Application Proxy.</p>
  
  <p>When I finally load the proxied URL on my store - I get a blank screen and a bunch of 404's in the console for my .css and .js chunk files. The request was sent, authenticated, and my API's response is (200) - it just won't render anything.</p>
  
  <p>Finally, after much research, I realized that Shopify has changed the path to these CSS and JS files to be my-store.myshopify.com/hash.chunk.js etc. instead of the reference to my Heroku server.</p>
  
  <p>It appears this problem has been encountered before in this thread: <a href="https://stackoverflow.com/questions/50176416/shopify-app-how-to-include-assets-using-an-app-proxy-with-ruby-on-rails">Shopify app - how to include assets using an app-proxy with ruby on rails</a> However, I can't seem to find a node/react/heroku equivalent to the Ruby solution presented here.</p>
  
  <p>Any guidance or help would be greatly appreciated!</p>
  
  <p>I begin by serving my React App through express with:</p>
  
  <pre><code>app.use(express.static(path.join(__dirname, 'client/build')));
  </code></pre>
  
  <p>and then when my proxy URL is hit I send back the index file within the client/build folder:</p>
  
  <pre><code>router.get('/proxy', (req, res) =&gt; {
  
      res.set('Content-Type', 'application/liquid').sendFile(path.join(__dirname, '../client/build/index.html'));
  
    });
  </code></pre>