Configure nuxt.js application to work in a subdirectory on a webserver
To complete @Aldarund answer, I use :
export default {
[…] // some code
router: {
base:
process.env.NODE_ENV === "development" ? process.env.BASE_URL : "/<subfolder>/"
} // where <subfolder> is the subfolder!
};
You need router/base
router: {
base: '/dist/'
}