Home
Support Forums

How to deploy app to a subfolder?

Let’s use vue as an example.
My project is in the root folder. (package.json is in the root folder). The build results is in the /dist folder.
When I deploy my project to netlify, I want user visit https://xxxx-xxxxx-xxx.netlify.app/app/ NOT https://xxxx-xxxxx-xxx.netlify.app/. Basically, I want copy contents in /dist folder into /app folder, NOT root folder. I have done some search and cannot find a configure related to this setup.

You’ve answered your question yourself. You need to move that folder’s contents into ‘/dist/app’ folder.

You can use Linux command like mv or write a Nodejs based script or shell script - it’s upto you.