All Projects → sw-yx → TwoSitesOneRepo

sw-yx / TwoSitesOneRepo

Licence: other
demonstrating how to host multiple sites on netlify from one repo

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

This is a demonstration of how to deploy multiple sites from one repo.

no netlify.toml is being used. instead i just push to github and use the netlify UI to set the build settings for each site.

Here's my settings for Site 1:

Build command: cd site1 && npm install && npm run build

Publish directory: site1/dist

and Here's my settings for Site 2:

Build command: cd site2 && npm install && npm run build

Publish directory: site2/dist

That's it! both build whenever someone commits to master on the repo. Not exactly fine grained control, but it works enough for most monorepo projects.


To see the deployed sites:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].