fix: serve css/js via cdn

This commit is contained in:
2026-09-22 09:32:15 +02:00
parent 599e3c7ee2
commit abcd39107b
3 changed files with 15 additions and 3 deletions
@@ -1,10 +1,16 @@
config.tx_replacer {
enable_regex = 1
# The quote character is captured rather than matched literally, because the
# @font-face block in Page/Main.typoscript writes its url() values with single
# quotes - anchoring on `"` alone would skip every font.
# typo3conf is scoped to ep_theme/Resources/Public on purpose: it keeps other
# extensions, Configuration/ and Resources/Private/ out of the CDN.
search {
10 = /"\/?(fileadmin|typo3temp|uploads)/
10 = /(["'])\/?(fileadmin|typo3temp|uploads|typo3conf\/ext\/ep_theme\/Resources\/Public)/
}
replace {
10 = "https://cdn.ep-reisen.de/$1
10 = $1https://cdn.ep-reisen.de/$2
}
}
@@ -5,5 +5,6 @@ plugin.tx_typo3encore {
builds {
EpThemeConfig = EXT:ep_theme/Resources/Public
}
preload.enable = 0
}
}
}