title: NextJS assetPrefix and basePath prefix not taking effect
body: <p>I'm unsuccessfully attempting to create a simple NextJS site that has a <code>/app</code> prefix on all the links. So that on the home page (which has a link to <code>/about</code>), the About link should end up as <code>/app/about</code>.</p>
  <p>(updated based on comments below) My <code>next.config.js</code> file looks like this:</p>
  <pre><code>module.exports = {
    assetPrefix: &quot;/app&quot;,
    publicRuntimeConfig: {
      basePath: &quot;/app&quot;,
    },
    basePath: &quot;/app&quot;,
  };
  </code></pre>
  <p>And my <code>package.json</code>'s scripts section has:</p>
  <pre><code>    &quot;build&quot;: &quot;next build &amp;&amp; next export&quot;,
  </code></pre>
  <p>However, when I copy the contents of the generated <code>out</code> folder into my web server, the index page's &quot;About&quot; link always points to <code>/about</code> without the desired prefix. What could be causing that? It appears as though the <code>assetPrefix</code> value is working:</p>
  <p><a href="https://i.stack.imgur.com/Nnion.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nnion.png" alt="enter image description here" /></a></p>
  <p>So it's just the root <code>basePath</code> field that isn't working.</p>