title: Base url with multi page apps using vite
body: <p>For my multi page app i cannot have html assets imports pointing to the root as i need to upload my project inside a sub-folder.</p>
  <p>Using -</p>
  <pre><code>module.exports = defineConfig({
    base: &quot;./&quot;,
  });
  </code></pre>
  <p>resolves this issue for root pages but cause a wrong import for nested pages.</p>
  <p>Example</p>
  <pre><code> - assets
   - index.html
   - nested
     - nested.html
  </code></pre>
  <p>Imports for index.html will point to ./assets which is correct.</p>
  <p>Imports for nested.html will also point to ./assets which is incorrect. It needs to point to ../assets instead.</p>