mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
make default dev server target overridable with env vars
This commit is contained in:
parent
23bb32b7ad
commit
2254bdb0e1
@ -1,8 +1,9 @@
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const TARGET_PORT = 8043;
|
||||
const TARGET = `https://localhost:${TARGET_PORT}`;
|
||||
const TARGET_PORT = process.env.TARGET_PORT || 8043;
|
||||
const TARGET_HOST = process.env.TARGET_HOST || 'localhost';
|
||||
const TARGET = `https://${TARGET_HOST}:${TARGET_PORT}`;
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.jsx',
|
||||
|
Loading…
Reference in New Issue
Block a user