@@ -61,7 +61,7 @@ To get started, head to your dashboard and try creating a collection to help doc
You can also import existing Markdown documents by dragging and dropping them to your collections.
-http://localhost:3000/dashboard
+http://example.com/dashboard
",
"to": "user@example.com",
}
diff --git a/server/emails/WelcomeEmail.js b/server/emails/WelcomeEmail.js
index 29caabfb..62b106d2 100644
--- a/server/emails/WelcomeEmail.js
+++ b/server/emails/WelcomeEmail.js
@@ -8,7 +8,11 @@ import Header from './components/Header';
import Footer from './components/Footer';
import EmptySpace from './components/EmptySpace';
-export const welcomeEmailText = `
+export type Props = {
+ teamUrl: string,
+};
+
+export const welcomeEmailText = ({ teamUrl }: Props) => `
Welcome to Outline!
Outline is a place for your team to build and share knowledge.
@@ -17,10 +21,10 @@ To get started, head to your dashboard and try creating a collection to help doc
You can also import existing Markdown documents by dragging and dropping them to your collections.
-${process.env.URL}/dashboard
+${teamUrl}/dashboard
`;
-export const WelcomeEmail = () => {
+export const WelcomeEmail = ({ teamUrl }: Props) => {
return (
@@ -39,9 +43,7 @@ export const WelcomeEmail = () => {