Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
Testing external netlify auth headers; issue opentargets/issues#984
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaFumis committed Apr 27, 2020
1 parent aa9045b commit b496c73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
23 changes: 10 additions & 13 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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/"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b496c73

Please sign in to comment.