Revert "feat: servir les images via le CDN BunnyCDN"

This reverts commit 58dd9297e0.
This commit is contained in:
2026-07-22 21:12:34 +04:00
parent d0fc7207f2
commit bb680f60b0
7 changed files with 12 additions and 23 deletions
-8
View File
@@ -1,5 +1,3 @@
const cdn = require("./src/_data/cdn.json");
module.exports = function(eleventyConfig) {
// Locale-aware content: `t` resolves to the content bundle for the page's locale (fr by default)
eleventyConfig.addGlobalData("eleventyComputed", {
@@ -7,12 +5,6 @@ module.exports = function(eleventyConfig) {
t: (data) => data.i18n[data.locale || "fr"]
});
// Serve local images through the BunnyCDN pull zone; leaves external URLs untouched
eleventyConfig.addFilter("cdn", (path) => {
if (typeof path !== "string" || !path.startsWith("/")) return path;
return cdn.url + path;
});
// Copy assets folders to output
eleventyConfig.addPassthroughCopy("src/assets");