title: Serving express static files issue
body: <p>I am having issues w/ serving static files in my current Express app, although I've done a similar setup in a bunch of other apps.. My folder structure is as follows:</p>
  
  <pre><code>/rootfolder/
      /app
          package.json
          /client
              /dist
                  /static
                  index.html
  
          /server
              /src
                  index.js
  </code></pre>
  
  <p>Relevant part of my <code>server/src/index.js</code>:</p>
  
  <p><code>app.use(express.static(path.join(__dirname, "client", "dist")));</code></p>
  
  <p>Where <code>__dirname = /rootfolder/app/server/src</code></p>
  
  <p>And when the user hits the <code>/</code> endpoint:</p>
  
  <pre><code>app.get("/", (req, res) =&gt; {
    res.sendFile(appRoot.path + "/client/dist/index.html");
  });
  </code></pre>
  
  <p>Where <code>appRoot.path = /rootfolder/app</code></p>
  
  <p>When I hit the <code>/</code> endpoint, I get a status 200 with the following text:</p>
  
  <p><code>/rootfolder/app/client/dist/index.html</code></p>
  
  <p>From what I can tell, the files are coded relative to each other correctly.. Does anyone know what I might be doing wrong?</p>
  
  <p>Thanks in advance!</p>