fix(csp): ws connection during dev uses SYNC_PORT only (#14483)

This commit is contained in:
Berkeley Martinez
2017-04-21 03:51:55 -07:00
committed by mrugesh mohapatra
parent 2913c5c353
commit 36ce006aac

View File

@ -5,7 +5,7 @@ let trusted = [
]; ];
const host = process.env.HOST || 'localhost'; const host = process.env.HOST || 'localhost';
const port = process.env.PORT || process.env.SYNC_PORT || '3000'; const port = process.env.SYNC_PORT || '3000';
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
trusted = trusted.concat([ trusted = trusted.concat([