--- import fs from "node:fs"; import path from "node:path"; import { footerConfig, profileConfig } from "@/config"; import { url } from "@/utils/url-utils"; const currentYear = new Date().getFullYear(); let customFooterHtml = footerConfig.customHtml?.trim() || ""; if (!customFooterHtml && footerConfig.enable) { try { const footerConfigPath = path.join( process.cwd(), "src", "config", "FooterConfig.html", ); customFooterHtml = fs.readFileSync(footerConfigPath, "utf-8"); customFooterHtml = customFooterHtml.replace(//g, "").trim(); } catch (error) { console.warn("FooterConfig.html read failed:", error.message); } } ---