I am having a custom Python script which can generate either one, or both, of two language versions of my site. The latter behavior appears to also take place in case of generating with Hugo Multilingual.
i want these version to function under two separate domains — kind of like Hugo Multilingual Multihost:
i don’t think i want
other-language.example.com to redirect to
main.example.com/other-language/ , even if the path would be just two-letter
The solutions that can be:
- generator, in a single deployment, generates two publish directories, netlify assigns one to one to one domain and the other to the other domain. If only it was supported by netlify configuration, if only there was some
- generator generates a site depending on a SITELANG environment variable, so there are two deployments but on one site (as in, site the netlify entity), maybe slightly faster because totaling to kinda one-and-a-half because cloning just once, just executing twice. If only it was supported by netlify configuration, if only there was some netlify.toml option maybe.
- generator generates a site depending on a SITELANG environment variable, two netlify sites are created and connected to the same repository
- generator generates a site depending on which language branch are we in, and we either create two separate sites for that or we use branch deployments
netlify.toml i also have, having two domains (language versions)
b.example.com, a 301 force redirect from