diff --git a/.circleci/config.yml b/.circleci/config.yml index 37fe8b4d60..db65705116 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -379,7 +379,7 @@ workflows: branches: only: - develop - - stat_marathon_match_link + - fix-security-headers # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration diff --git a/src/server/index.js b/src/server/index.js index 0eee1228fd..9996ce180f 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -50,6 +50,8 @@ ts = moment(ts.timestamp).valueOf(); const sw = `sw.js${process.env.NODE_ENV === 'production' ? '' : '?debug'}`; const swScope = '/challenges'; // we are currently only interested in improving challenges pages +const tcoPattern = new RegExp(/^tco\d{2}\.topcoder(?:-dev)?\.com$/i); + const EXTRA_SCRIPTS = [ `