HELP! Many middleman sites - more efficient workflow?

I have over 10+ sites that are all built in Middleman.
I am constantly looking for an efficient way to manage/update them all, the main challenge is to have their HTML/CSS structure/assets updated across all sites so I don’t need to update each separately.

Does anyone here is in similar circumstances and found out a good solution or have an idea how that could work?

Looking forward to your suggestions :slight_smile:

I have a multi site operation with 25 domains

The key is to pass an env variable it at build time

npm package.json

"blog:server": "cd blog; site=$site NO_CONTRACTS=true bundle exec middleman server",

$ site=domain npm run blog:server

in config.rb

you can then read that env variable

// Target environment variable based on language

case ENV['site']
  when 'domain'
    do stuff
  end
end

You probably get the jist - you can then make blogs dynamic for instance by ignoring paths and targetting folders

and carry that site domain through all the templates