Add filename debugging to find metadata.json matching issue

- Add quotes around filenames to see exact content
- Add directory skipping debug output
- Add success message when metadata.json entry is found
- Debug why filename comparison is failing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
riz 2025-11-19 22:58:09 +00:00
parent af7b4c3968
commit 486042aaa5
1 changed files with 4 additions and 2 deletions

View File

@ -260,19 +260,21 @@ export const deploy = {
let loadedFiles = 0;
// Process each entry in the ZIP
console.log(`[DEBUG] Processing ${zipEntries.length} ZIP entries...`);
for (const entry of zipEntries) {
if (entry.filename.endsWith('/')) {
// Skip directory entries
console.log(`[DEBUG] Skipping directory: ${entry.filename}`);
continue;
}
try {
console.log(`[DEBUG] Processing file: ${entry.filename} (${entry.compressedSize} -> ${entry.uncompressedSize} bytes)`);
console.log(`[DEBUG] Processing file: "${entry.filename}" (${entry.compressedSize} -> ${entry.uncompressedSize} bytes)`);
// Extract file data from ZIP buffer
const fileContent = await this.extractFileFromZip(zipBuffer, entry);
if (entry.filename === 'metadata.json') {
console.log(`[DEBUG] ✓ Found metadata.json entry!`);
console.log(`[DEBUG] Found metadata.json, parsing content...`);
console.log(`[DEBUG] metadata.json file size: ${fileContent.length} bytes`);