########################################
## INCLUDES FOR STAGING && PRODUCTION ##
########################################
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:hny_pot/Configuration/TypoScript/Constants/Ext" extensions="txt">
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:hny_pot/Configuration/TypoScript/Constants/Production" extensions="txt">

##############################
## OVERRIDE FOR DEVELOPMENT ##
##############################
[globalString = ENV:HTTP_HOST=development.*]
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:hny_pot/Configuration/TypoScript/Constants/Development" extensions="txt">
[global]

##############################
## Override Dynamic baseURL ##
##############################
plugin.tx_hive_cfg_typoscript {
    settings {
        config {
            dynamic {
                baseURL {
                    ## IMPORTANT Must end with "." or must be empty
                    prefix = www.
                    host = muster.domain
                }
            }
        }
    }
}

##
## Dynamic baseURL
## prefix
##
[globalString = ENV:HTTP_HOST=development.*] || [globalString = ENV:HTTP_HOST=*.development.*]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.prefix = development.
[global]
[globalString = ENV:HTTP_HOST=staging.*] || [globalString = ENV:HTTP_HOST=*.staging.*]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.prefix = staging.
[global]
[globalString = ENV:HTTP_HOST=api.*]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.prefix = api.
[global]
[globalString = ENV:HTTP_HOST=api.development.*]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.prefix = api.development.
[global]
[globalString = ENV:HTTP_HOST=api.staging.*]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.prefix = api.staging.
[global]

##
## Dynamic baseURL
## host
##
[globalString = ENV:HTTP_HOST=*.localhost]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.host = localhost
[global]
[globalString = ENV:HTTP_HOST=*.localhost.de]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.host = localhost.de
[global]
[globalString = ENV:HTTP_HOST=*.localhost.ch]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.host = localhost.ch
[global]
[globalString = ENV:HTTP_HOST=*.localhost.fr]
    plugin.tx_hive_cfg_typoscript.settings.config.dynamic.baseURL.host = localhost.fr
[global]