Recently, I developed an application using Vue.js 3 and Vuetify 3 with the help of Vite. Everything was working perfectly when I deployed it to production in the main root folder (accessible through http://example.com). However, now I am faced with a challenge as I want to deploy the app to a subfolder named "app" (i.e., http://example.com/app). The reason behind this is that the root directory already contains a marketing website, and I don't want to overwrite that.
One important thing to note is that TypeScript is also being used in this project.
After going through the Vite documentation, I discovered that you can change the public path by using:
vite build --base=/my/public/path/
In my specific case, I attempted to implement this solution by running the following command:
vite build --base=/app/
Despite trying out this method, I encountered an issue when deploying to production within the "app" folder. Although the title on the webpage displays correctly, the whole screen appears blank, leaving me puzzled about how to proceed.