Skip to content

Commit

Permalink
feat(af-webpack): support config HOST, close #50
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jan 10, 2018
1 parent c973301 commit 36e0409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/af-webpack/src/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import choosePort from './choosePort';

const isInteractive = process.stdout.isTTY;
const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 8000;
const HOST = '0.0.0.0';
const HOST = process.env.HOST || '0.0.0.0';
const PROTOCOL = 'http';
const noop = () => {};

Expand Down

0 comments on commit 36e0409

Please sign in to comment.