# @import in TYPO3 v12 supports conditions
# https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/Configuration/TypoScript/Syntax/FileImports/Index.html
# https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Feature-97816-TypoScriptSyntaxImprovements.html#import-in-conditions

[getTSFE() && getTSFE().type == 2]
    @import 'EXT:example/Configuration/TypoScript/json.typoscript'
[end]