Open bogdancss opened 4 years ago
We have multiple build commands, each with its own PUBLIC_URL set. However, runningreact-snap fails and only crawls /:
PUBLIC_URL
react-snap
/
⚠️ warning at /: got 404 HTTP code for https://emaple.com/custompath/static/js/2.e75ddbd9.chunk.js
️💬 console.log at /: Failed to load resource: the server responded with a status of 404 ()
✅ crawled 1 out of 1 (/)
I had the same problem and found the solution in a different issue. TLDR, remove the hostname from the PUBLIC_URL, e.g. PUBLIC_URL="https://emaple.com/custompath" -> PUBLIC_URL="/custompath".
PUBLIC_URL="https://emaple.com/custompath"
PUBLIC_URL="/custompath"
We have multiple build commands, each with its own
PUBLIC_URL
set. However, runningreact-snap
fails and only crawls/
:⚠️ warning at /: got 404 HTTP code for https://emaple.com/custompath/static/js/2.e75ddbd9.chunk.js
️💬 console.log at /: Failed to load resource: the server responded with a status of 404 ()
✅ crawled 1 out of 1 (/)