fix not being able to build without cache (#823)

This commit is contained in:
Ahmidi Yasser
2025-03-01 06:32:48 +01:00
committed by GitHub
parent 3b6ed2b83e
commit 7b1519e9d0
+1 -1
View File
@@ -21,7 +21,7 @@ const getCached = () => {
}
needle.get(`https://${config['netlify-domain']}/catalog.json`, config.needle, (err, resp, body) => {
if ((body || [])[0].transportUrl && body[0].transportName && body[0].manifest) {
if ((body || []).length && body[0].transportUrl && body[0].transportName && body[0].manifest) {
console.log('loaded old addon catalog')
cached.catalog = body
} else {