faq
This commit is contained in:
32
scripts/debug-hang.ts
Normal file
32
scripts/debug-hang.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
console.log('1. Starting debug script...');
|
||||
|
||||
try {
|
||||
console.log('2. Importing fs...');
|
||||
const fs = require('fs');
|
||||
console.log(' fs imported.');
|
||||
|
||||
console.log('3. Importing path...');
|
||||
const path = require('path');
|
||||
console.log(' path imported.');
|
||||
|
||||
console.log('4. Importing googleapis...');
|
||||
const { google } = require('googleapis');
|
||||
console.log(' googleapis imported.');
|
||||
|
||||
console.log('5. Importing ../src/lib/indexnow...');
|
||||
const indexnow = require('../src/lib/indexnow');
|
||||
console.log(' indexnow imported.');
|
||||
console.log(' Keys:', Object.keys(indexnow));
|
||||
|
||||
if (indexnow.getAllIndexableUrls) {
|
||||
console.log('6. Calling getAllIndexableUrls...');
|
||||
const urls = indexnow.getAllIndexableUrls();
|
||||
console.log(` Got ${urls.length} URLs.`);
|
||||
}
|
||||
|
||||
console.log('7. Done!');
|
||||
|
||||
} catch (err) {
|
||||
console.error('ERROR during import:', err);
|
||||
}
|
||||
Reference in New Issue
Block a user