Updated tutorial setup (markdown)
+6
-6
@@ -138,9 +138,9 @@ Next, you'll need to open the MERN-template's `webpack.config.js` file, and repl
|
|||||||
new DefinePlugin({
|
new DefinePlugin({
|
||||||
'process.env': {
|
'process.env': {
|
||||||
'PRODUCTION': production,
|
'PRODUCTION': production,
|
||||||
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"https://dev-news.eggtrainer.com/news"',
|
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"https://dev-news.eggtrainer.com"',
|
||||||
'AUTH_URI': production ? `"${process.env.AUTH_URI}"` : '"https://dev-auth.eggtrainer.com/auth"',
|
'AUTH_URI': production ? `"${process.env.AUTH_URI}"` : '"https://dev-auth.eggtrainer.com"',
|
||||||
'CHAT_URI': production ? `"${process.env.CHAT_URI}"` : '"https://dev-chat.eggtrainer.com/chat"',
|
'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({
|
new DefinePlugin({
|
||||||
'process.env': {
|
'process.env': {
|
||||||
'PRODUCTION': production,
|
'PRODUCTION': production,
|
||||||
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"http://localhost:3100/news"',
|
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"http://localhost:3100"',
|
||||||
'AUTH_URI': production ? `"${process.env.AUTH_URI}"` : '"http://localhost:3200/auth"',
|
'AUTH_URI': production ? `"${process.env.AUTH_URI}"` : '"http://localhost:3200"',
|
||||||
'CHAT_URI': production ? `"${process.env.CHAT_URI}"` : '"http://localhost:3300/chat"',
|
'CHAT_URI': production ? `"${process.env.CHAT_URI}"` : '"http://localhost:3300"',
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user