lrf402788946 4 years ago
parent
commit
bf60debfc0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      config/config.prod.js

+ 2 - 2
config/config.prod.js

@@ -7,14 +7,14 @@ module.exports = () => {
     },
   };
   config.mongoose = {
-    url: 'mongodb://localhost:27017/htyd',
+    url: 'mongodb://127.0.0.1:27017/htyd',
     options: {
       user: 'admin',
       pass: 'admin',
       authSource: 'admin',
+      useUnifiedTopology: true,
       useNewUrlParser: true,
       useCreateIndex: true,
     },
   };
-
 };