2016-05-11 31 views
0

我想在從流星驗證/重置/註冊過程發送的電子郵件模板中將域名從「localhost」更改爲「www.someotherdomain.com」。它應該只是一個全局變量設置,但我無法找到它。任何提示將不勝感激。如何更改流星郵件模板中的域名?

要改變:

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

到:

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

感謝,

UPDATE:找到答案在下面的鏈接。

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

回答

0

您可以Meteor.absoluteUrl()設置此。例如:

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

OR,與環境變量設置ROOT_URL