Add logging for CSV file loading in getImages function
All checks were successful
CI / build (push) Successful in 32s

This commit is contained in:
2025-07-23 19:34:56 +00:00
parent 22f40a0bf5
commit 4f2fdf0b48

View File

@@ -4,6 +4,7 @@ const CSV_FILE = process.env.CSV_FILE || "./uploads/sha1.csv";
const IMAGE_BASE_URL = process.env.IMAGE_BASE_URL || "https://placehold.co/";
function getImages() {
console.log(`[pictshare-browse] Loading CSV file from: ${CSV_FILE}`);
if (!fs.existsSync(CSV_FILE)) return [];
return fs