nuxt-ai-ready 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -227,7 +227,13 @@ async function crawlSitemapEntries(state, nuxt, nitro, entries) {
|
|
|
227
227
|
});
|
|
228
228
|
if (!res)
|
|
229
229
|
continue;
|
|
230
|
-
|
|
230
|
+
let parsed;
|
|
231
|
+
try {
|
|
232
|
+
parsed = JSON.parse(res);
|
|
233
|
+
} catch (err) {
|
|
234
|
+
logger.debug(`Skipping ${route}: Response is not JSON (likely HTML instead of markdown conversion)`);
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
231
237
|
await processMarkdownRoute(state, nuxt, route, parsed, lastmod);
|
|
232
238
|
crawled++;
|
|
233
239
|
}
|