Implemented username reserve feature

This commit is contained in:
2021-03-03 04:27:48 +11:00
parent 34a5444705
commit 9a7e9313d8
13 changed files with 190 additions and 2 deletions
+2
View File
@@ -51,7 +51,9 @@ module.exports = ({ production, analyzer }) => {
new DefinePlugin({
'process.env': {
'NEWS_URI': production ? `"${process.env.NEWS_URI}"` : '"http://dev-news.eggtrainer.com:3100/news"',
/* TODO: (1) NEWS_KEY needs to be set in the server, and auth'd via admin accounts, NOT embedded in the client */
'NEWS_KEY': production ? `"${process.env.NEWS_KEY}"` : '"key"',
'CHAT_URI': production ? `"${process.env.NEWS_URI}"` : '"http://dev-chat.eggtrainer.com:3200/chat"',
}
}),
new CleanWebpackPlugin({