We’ve developed a SPA for service communication which should be used for the companies different brands. The application is exact the same for all brands, there is only a difference during build (changing colors, titles etc).
To achieve the different builds we’re using environment variables. The applications are also deployed under different domains, so i need three projects in Netlify which source is always the same Git.
Is there a possibility to do something like this in a
netlify.toml file, but specifiy the project there the production variables for?
# Brand 1 [context.production.environment] FRONTEND_ENVIRONMENT = "foo" BRAND_ID = "2" SITE_TITLE = "Foo Service App" # Brand 2 [context.production.environment] FRONTEND_ENVIRONMENT = "asdf" BRAND_ID = "2" SITE_TITLE = "Asdf Service App"
I know that there is the possibility to add environments variables in the Netlify backend for each project, but i would like to have these settings in our version control.
Thanks in advance!
All the best,