This extension provides a new value modifier := getSiteConfig()
for
TypoScript syntax that reads configuration values from the site configuration
into TypoScript values.
composer require undkonsorten/typo3-site-config-modifier
# cd to typo3conf/ext
git clone https://github.com/undkonsorten/typo3-site-config-modifier.git site_config_modifier
Can be used in constants, setup and TSConfig (suggested usage in constants):
myConstant = defaultValue
# myConstant will be overridden if env var is defined at all.
# Empty env vars will override, too!
myConstant := getSiteConfig(mykey)