//[project]/imports/startup/client/force_www_redirect.js
import { Meteor } from 'meteor/meteor'
Meteor.startup(function () {
if (location.host.indexOf('www.crunchyserial.com') !== 0) {
location = 'http://www.crunchyserial.com'
and I just make sure this is the first code my client startup sees by importing it first.
All of them fail, except on the staging server where everything works fine.
I haven’t pushed the current code to the staging server, because everything is working over there. The only difference is the fact that the staging server is using slightly older versions (like it’s not on Meteor 1.5 yet)
I don’t own any SSL certificates.
I’m pretty sure you have to have service-configuration if you’re doing to use settings.json.
Figuring out why it happened may shed light on it. Are you working from git? You could check your commit logs for anything suspicious
This is happening from all three providers?
This happens from all three “providers” (facebook, google, twitter)
I am using git, I can roll back if I must, but rolling back will just put me where I was when the problem started. The difference between here and there is just upgrading Meteor and a few packages related to this problem.
I can get a dump of the server log, one second.