Can't override Meteor absoluteUrl?

meteor, windows

Solution

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`

Problem

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.

Original source