Skip to content

swyxio/TwoSitesOneRepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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:

About

demonstrating how to host multiple sites on netlify from one repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published