There are some projects that live in a folder instead of the root of your git repository. If you need to deploy your site from a subdirectory, there are two ways to do it:
- You can set this in the UI:
In your site dashboard for the specific site you want to configure, go to Settings > Build & deploy > build-settings. The option is labeled
- Or, your can use a netlify.toml file and set the
[build] base = "subdirectory" publish = "subdirectory/dist/" command = "your build command"
Now, your builds will work from the
subdirectory folder mentioned above! If you have any issues, comment below.