If your TYPO3 project uses Site Sets, you must add TypoScript to your custom site package extension.
More details: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/UsingSetting/AddTypoScriptWithExtensions.html#extension-configuration-typoscript-set-record-one