diff --git a/.circleci/config.yml b/.circleci/config.yml index cd359cdd0f..114ab17160 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -349,14 +349,14 @@ workflows: filters: branches: only: - - reskin + - develop # This is alternate dev env for parallel testing - "build-test": context : org-global filters: branches: only: - - circleci-fix + - debug-CMS-error # This is alternate dev env for parallel testing - "build-qa": context : org-global @@ -370,7 +370,6 @@ workflows: filters: branches: only: - - footer-update - reskin # This is stage env for production QA releases - "build-prod-staging": @@ -379,7 +378,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 = [ `