This commit is contained in:
2026-04-11 19:04:26 +07:00
parent 1cc0c66835
commit ac40097bdd

View File

@@ -195,6 +195,8 @@ exports.api = async (req, res) => {
process.env.BACKEND_URL || `${req.protocol}://${req.get("host")}`; process.env.BACKEND_URL || `${req.protocol}://${req.get("host")}`;
console.log("[homeController.api] BACKEND_URL=", process.env.BACKEND_URL); console.log("[homeController.api] BACKEND_URL=", process.env.BACKEND_URL);
console.log("[homeController.api] BACKEND_URL raw:", JSON.stringify(process.env.BACKEND_URL));
console.log("[homeController.api] BACKEND_URL truthy:", !!process.env.BACKEND_URL);
console.log("[homeController.api] resolved baseUrl=", baseUrl); console.log("[homeController.api] resolved baseUrl=", baseUrl);
// === Xử lý Blog Preview động === // === Xử lý Blog Preview động ===