From b496c739debef1fd32e689e275df3f67432b54a9 Mon Sep 17 00:00:00 2001 From: Luca Fumis Date: Mon, 27 Apr 2020 13:10:11 +0100 Subject: [PATCH] Testing external netlify auth headers; issue opentargets/platform#984 --- netlify.toml | 23 ++++++++++------------- package.json | 2 +- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/netlify.toml b/netlify.toml index a535bfb0b..4b4da6465 100644 --- a/netlify.toml +++ b/netlify.toml @@ -9,17 +9,15 @@ [context.production.environment] APIHOST = "https://platform-api.opentargets.io/" - command = "yarn run setup && yarn run build-all" # Deploy Preview context: All Deploy Previews (ie.PRs) # will inherit these settings. [context.deploy-preview] - # command = "yarn run setup && yarn run build-qa" - [[headers]] - for = "/*" - [headers.values] - # Basic-Auth header - Basic-Auth = "opentargets:opentargets" + command = "yarn run setup && yarn run build-qa" + # [[headers]] + # for = "/*" + # [headers.values] + # Basic-Auth = "opentargets:opentargets" [context.deploy-preview.environment] APIHOST = "https://platform-api.opentargets.io/" @@ -28,12 +26,11 @@ # an active Deploy Preview will inherit these settings. # By default [context.branch-deploy] - # command = "yarn run setup && yarn run build-qa" - [[headers]] - for = "/*" - [headers.values] - # Basic-Auth header - Basic-Auth = "opentargets:opentargets" + command = "yarn run setup && yarn run build-qa" + # [[headers]] + # for = "/*" + # [headers.values] + # Basic-Auth = "opentargets:opentargets" [context.branch-deploy.environment] APIHOST = "https://platform-api-qc.opentargets.io/" diff --git a/package.json b/package.json index 3e3f76b98..8317cfa84 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "build-all": "./node_modules/.bin/gulp build-all", "server": "./node_modules/.bin/gulp webserver", "full-install": "yarn install && yarn run setup && yarn run build-all", - "build-qa": "./node_modules/.bin/gulp build-all && cp netlify_headers _site/_headers", + "build-qa": "./node_modules/.bin/gulp build-all && cp netlify_headers app/_headers", "test": "./node_modules/.bin/gulp test", "test-single-run": "karma start tests/unit/karma.conf.js --single-run", "eslint": "./node_modules/.bin/eslint -f html -o eslint.html 'app/js/**.js' || exit 0"