#534·vitesse

Running in subdirectory giving page not found.

Author: iang0ldCreated May 13, 2024Updated May 13, 2024

Describe the bug

When trying to run in a subdirectory, after setting base: './' in vite.config.js page not found results.

Reproduction

Copy the dist directory as subdirectory of a web app and display index.html in the browser.

System Info

bash
Page not found displays

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Source: antfu-collective/vitesse