Updated tutorial setup (markdown)

2021-03-14 04:40:28 +11:00
parent 3e73045c51
commit a7bfc0c00c
+6 -6
@@ -138,9 +138,9 @@ Next, you'll need to open the MERN-template's `webpack.config.js` file, and repl
new DefinePlugin({
'process.env': {
'PRODUCTION': production,
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"https://dev-news.eggtrainer.com/news"',
'AUTH_URI': production ? `"${process.env.AUTH_URI}"` : '"https://dev-auth.eggtrainer.com/auth"',
'CHAT_URI': production ? `"${process.env.CHAT_URI}"` : '"https://dev-chat.eggtrainer.com/chat"',
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"https://dev-news.eggtrainer.com"',
'AUTH_URI': production ? `"${process.env.AUTH_URI}"` : '"https://dev-auth.eggtrainer.com"',
'CHAT_URI': production ? `"${process.env.CHAT_URI}"` : '"https://dev-chat.eggtrainer.com"',
}
}),
```
@@ -151,9 +151,9 @@ With the following (this point the client at the correct localhost ports, notice
new DefinePlugin({
'process.env': {
'PRODUCTION': production,
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"http://localhost:3100/news"',
'AUTH_URI': production ? `"${process.env.AUTH_URI}"` : '"http://localhost:3200/auth"',
'CHAT_URI': production ? `"${process.env.CHAT_URI}"` : '"http://localhost:3300/chat"',
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"http://localhost:3100"',
'AUTH_URI': production ? `"${process.env.AUTH_URI}"` : '"http://localhost:3200"',
'CHAT_URI': production ? `"${process.env.CHAT_URI}"` : '"http://localhost:3300"',
}
}),
```