mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 12:27:37 -02:30
make default dev server target overridable with env vars
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
|
|
||||||
const TARGET_PORT = 8043;
|
const TARGET_PORT = process.env.TARGET_PORT || 8043;
|
||||||
const TARGET = `https://localhost:${TARGET_PORT}`;
|
const TARGET_HOST = process.env.TARGET_HOST || 'localhost';
|
||||||
|
const TARGET = `https://${TARGET_HOST}:${TARGET_PORT}`;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: './src/index.jsx',
|
entry: './src/index.jsx',
|
||||||
|
|||||||
Reference in New Issue
Block a user