## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
########################################
## INCLUDES FOR STAGING && PRODUCTION ##
########################################
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:hive_cfg_typoscript/Configuration/TypoScript/Constants/Production" extensions="txt">

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

#####################
## Dynamic baseURL ##
#####################
plugin.tx_hive_cfg_typoscript {
    settings {
        config {
            dynamic {
                baseURL {
                    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]