S-48324 Added branch name if exist

fixed config.js for default environment, add the port.