I'm trying to override the absoluteUrl in combination with a deployment on a Windows server.
On the server in Meteor.startup I'm doing this:
Meteor.absoluteUrl({rootUrl: "http://example.com"});
Calling Meteor.absoluteUrl() in the console returns: http://localhost:3000
.
Any suggestions are most welcome. Doing this Meteor.absoluteUrl({replaceLocalhost:true}); also doesn't have any effect at all.
Try:
Meteor.absoluteUrl.defaultOptions.rootUrl = "http://mydomain.com"
In your Meteor.startup. If its not for individualizing settings you can also use the environmental variable ROOT_URL
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With