Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting ROOT_URL with non-custom domain? #51

Closed
ghost opened this issue Apr 29, 2017 · 3 comments
Closed

Setting ROOT_URL with non-custom domain? #51

ghost opened this issue Apr 29, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 29, 2017

Recently i want to implement a email verification function to my app
which is making use of Meteor.absoluteUrl and ROOT_URL
i am using the OSS plan with non-custom domains.
Any recommendation would be appreciated!

@jkrup
Copy link
Owner

jkrup commented Apr 29, 2017

One option you can do is have a Meteor.method (you'll probably want to password protect this method) that sets process.env.ROOT_URL = whatever you pass in something like:

Meteor.methods({
  setRootUrl: (pass, url) {
    if (pass === 'somelongsecretcode') {
      process.env.ROOT_URL = url;
    }
  },
});

@jkrup
Copy link
Owner

jkrup commented Apr 29, 2017

Then you'll need to manually call Meteor.call('somelongsecretcode', ' http://iw0e8fh9asdhf.now.sh'), but that should work.

@acomito
Copy link

acomito commented May 7, 2017

thanks @jkrup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants