1)
The bug was just when you were catching the fetch; instead of console.log the link with status as a BAD LINK, you were writing on the console the error. (fetch fail == dead link).
2) ADD TIMEOUT TO OPTIMIZATION
In the fetch request, I inserted a new key(timeout: 1500), meaning the fetch will await a link response for just 1.5 secs (some dead links can make your fetch wait a lifetime.
3 I'm adding a gitignore file to prevent us from uploading/downloading the node_modules
1) The bug was just when you were catching the fetch; instead of console.log the link with status as a BAD LINK, you were writing on the console the error. (fetch fail == dead link).
2) ADD TIMEOUT TO OPTIMIZATION In the fetch request, I inserted a new key(timeout: 1500), meaning the fetch will await a link response for just 1.5 secs (some dead links can make your fetch wait a lifetime.
3 I'm adding a gitignore file to prevent us from uploading/downloading the node_modules
Best Regards. Pedro. See you.