ctrlplusb / react-universally

A starter kit for universal react applications.
MIT License
1.7k stars 244 forks source link

Service Worker mime type errors in Chrome (on Heroku) #535

Open oyeanuj opened 6 years ago

oyeanuj commented 6 years ago

I set up a deployment of the repo to Heroku, and see the following errors in Chrome:

Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/html').

You can reproduce it here: https://react-universally-test.herokuapp.com/

What is the best way for us to set the MIME Types for sw.js?