如何在流星电子邮件模板中更改域名?

时间:2016-05-11 00:23:33

标签: email meteor

我想在Meteor验证/重置/注册过程发送的电子邮件模板中将域名从“localhost”更改为“www.someotherdomain.com”。它应该只是一个全局变量设置,但我找不到它。任何提示都将非常感激。

改变:

http://localhost:3000/reset-password/abcdefghijklmnoprqstuvwxyz

为:

http://www.someotherdomain.com/reset-password/abcdefghijklmnoprqstuvwxyz

谢谢,

更新:在以下链接中找到答案。

Meteor - What is the purpose of "ROOT_URL" and to what should it be defined?

1 个答案:

答案 0 :(得分:0)

您可以使用Meteor.absoluteUrl()进行设置。例如:

Meteor.absoluteUrl("http://www.someotherdomain.com");

或者,使用环境变量ROOT_URL

进行设置