Sfoglia il codice sorgente

use PORT environment variable for webpack devServer

for local setup without docker
Anukul Sangwan 4 anni fa
parent
commit
0f403a9d16
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      dashboard/webpack.config.js

+ 1 - 0
dashboard/webpack.config.js

@@ -54,6 +54,7 @@ module.exports = () => {
       publicPath: "/",
       publicPath: "/",
     },
     },
     devServer: {
     devServer: {
+      port: env["PORT"],
       historyApiFallback: true,
       historyApiFallback: true,
       disableHostCheck: true,
       disableHostCheck: true,
     },
     },