Commit 27067a70d3df3508796b64b2c387dbed7684f3b4

Authored by 吉鹏
1 parent fedf6da380
Exists in master

外网开放

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
... ... @@ -32,6 +32,8 @@ module.exports = {
32 32 devServer: {
33 33 port: port,
34 34 open: true,
  35 + public: require('os').networkInterfaces()[Object.keys(require('os').networkInterfaces())[0]][1].address + ':8080',
  36 + disableHostCheck: true,
35 37 overlay: {
36 38 warnings: false,
37 39 errors: true
... ...