title: Heroku no such file or directory, stat '/app/client/build/index.html'
body: <p>I have been struggling with this error for literally almost three weeks now, and it's honestly driving me crazy. I have been using Heroku to deploy my projects for over a year now, and I have never experienced any errors until I was going to release this new website of mine. You see, I currently have a mail server installed in my node project, called "index.js" while my full React project is in a folder called client. </p>
  
  <p><a href="https://i.stack.imgur.com/kjCpi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kjCpi.png" alt="enter image description here"></a>
  Now, here is what's weird. My index.js looks like this:</p>
  
  <pre><code>if (process.env.NODE_ENV === 'production') {
      app.use(express.static('client/build'));
      const path = require('path');
      app.get('*', (req, res) =&gt; {
        res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html'));
      });
    }
  </code></pre>
  
  <p>But each time I push to Heroku, I get this error message in the console:</p>
  
  <pre><code>Error: ENOENT: no such file or directory, stat '/app/client/build/index.html'
  </code></pre>
  
  <p>I have also been trying to change and modify the directories in the path, to see if anything changes. I have also looked through what feels like the whole internet regarding a potential solution for this issue, without any luck. I would be extremely grateful if someone could at least point me in the right direction of what I seem to do wrong here.</p>
  
  <p>Thanks in advance.</p>