How to override multilingual multihost baseURLs with environment config?

This multilingual multi-host example:
https://discourse.gohugo.io/t/crafting-and-configuring-a-serverless-site/48029

Has this configuration directory structure:

config/
├── _default/
│   └── hugo.toml
├── development/
│   └── hugo.toml
├── production/
│   └── hugo.toml
└── serverless/
    └── hugo.toml

The default configuration is single-host. Multi-host is only enabled for the “development” and “production” environments.

If you were to enable multi-host in the default configuration by setting a baseURL under each language key, there’s no way to override that in another environment… you cannot remove a key once set.

1 Like