title: Nuxt: When using Github Pages with Custom Domain it is unable to access _nuxt folder
body: <p>I have a static Nuxt based website. I wish to use the static website on github. However, I want to keep the nuxt development folder as a private repo and the dist part as a public folder.</p>
  <ol>
  <li>Hence I created two github projects: <code>site-pvt</code> and <code>site-public</code>.</li>
  <li>Using the pvt folder I created the website. I have tested it in local using <code>npm run generate</code> followed by <code>npm run start</code>. It works as expected.</li>
  <li>I copy the <code>dist</code> directory from the <code>site-pvt</code> to <code>site-public</code>.</li>
  <li>I push the <code>site-public</code> to github where I set the pages to the main branch</li>
  <li>When I type URL <code>https://&lt;username&gt;.github.io/site-public</code> I am able to see the site as I do local</li>
  </ol>
  <p>However</p>
  <ol start="6">
  <li>When I set a custom domain in github in the <code>site-public</code> repo, it seems to be that the HTML is retrieved but the Javascript access to the <code>_nuxt</code> directory is unavailable.</li>
  </ol>
  <p>Following are some relevant information</p>
  <pre><code>// nuxt.config.js
  export default {
    target: 'static',
  
    router: {
      base: '/public-site/'
    },
    ..
  }
  </code></pre>
  <p>The directory structure of the <code>dist</code> directory is as follows:</p>
  <pre><code>.
  └── _nuxt
      ├── 00e716f.js
  └── .nojekyll
  ├── posts
  └── 404.html
  ├── favicon.ico
  ├── CNAME
  ├── index.html
  </code></pre>
  <p>There must be some other setting to be done to get this working. I will appreciate any help on this. Thanks</p>