Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

gatsby - Why does Webpack runtime 404 when other files are accessible?

I have created a static site using Gatsby and setup a storage bucket on Google Cloud to host the files. The site is accessible via a custom domain name that is linked through Cloudflare. When I try to view the site, my Webpack runtime JS file can't be found (404) - but all of the other network requests are successful. I'm really not sure where to turn with this... I've verified that the file exists on Google Cloud and that I can access it using a direct URL. I've checked that the path in the request right as well as clearing my browser cache, re-uploading the files to Google Cloud, etc. The only lead I have found is this related question:

webpack-runtime js files getting a 404

I did at one point enable Gatsby offline mode, but I have since removed it from my Gatsby config, uninstalled it via NPM, installed gatsby-plugin-remove-serviceworker and added it to my Gatsby config as suggested.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...