I have some problem with some JS. In the dev-tools I see (after installing some official plugins):
I’m not sure where to start debugging this.
Searching for the message “Failed to register Service Worker: TypeError: Failed to register a ServiceWorker: ServiceWorker script evaluation failed” on Google suggests there is a problem with the JS but I’m don’t know where it is coming from.
Have anybody got this issue before?
Force https is enabled and hidden if let’s encrypt is enabled. There was another topic recently that had http links in summary emailsv(Discourse Activity Summary Emails Guide), Could there be some regression with the code that sets the override env variable? Or something like that?
I used the following guide to enable HTTPS: Setting up HTTPS support with Let's Encrypt.
Maybe it’s outdated or maybe I should have used another guide? I set there the env “LETSENCRYPT_ACCOUNT_EMAIL”.
New to rails, so is it possible to explain which run in order to check the value of force_https?
This is the same issue as this one (although surfacing under different circumstances)
Having a hostname / full URL in an asset is guaranteed to cause trouble.
In this specific case, the assets were probably built before force_https was turned on.
Rebuild and you’ll be fine.
I use DigitalOcean and I destroyed the droplet and made a new one. I followed the steps (without using the guide I mentioned before, rather the script). But I still got the same error.
After running the commands I get: