webpack: Add ALLOWED_HOSTS list for zulipdev.com and friends.

This makes it possible to again use the *.zulipdev.com domains in the
development environment.

Ideally, we'd also read REALM_HOSTS to make this more flexible.
This commit is contained in:
Tim Abbott 2018-05-20 18:12:28 -07:00
parent ae0a929988
commit 06ed55e45a
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ def run_watch(host, port, minify, disable_host_check):
webpack_args += [ webpack_args += [
'--config', '--config',
'tools/webpack.config.ts', 'tools/webpack.config.ts',
'--allowed-hosts', ','.join([host, '.zulipdev.com', '.zulipdev.org']),
'--host', host, '--host', host,
'--port', port, '--port', port,
# We add the hot flag using the cli because it takes care # We add the hot flag using the cli because it takes care