Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k 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 Reply

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...