0👍
In you vue.config.js
you can add a publicPath
with the path you want to host your project
This only works if you’ve use the vue cli
For example:
module.exports = {
publicPath: '/admin',
};
You can also open the vue cli documentation:
The base URL your application bundle will be deployed at (known as baseUrl before Vue CLI 3.3). This is the equivalent of webpack’s output.publicPath, but Vue CLI also needs this value for other purposes, so you should always use publicPath instead of modifying webpack output.publicPath.
Source:stackexchange.com