Hi, @yotav_masa, one solution is to modify the
netlify.toml file during the builds with a site specific build command.
For example you can have three different
_header files like so:
Then for each site you can change the actual headers file as part of the build. For example, (using a
build.publish setting of
my-publish-directory) if the starting
npm run build then the new
build.command for site one would be:
cp site1-headers my-publish-directory/_headers && npm run build
This is only one of many options. For example, you might make the updating the
_headers file part of the node build command itself instead of a separate command before it.
If there are other questions about this, please let us know.