This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.netlify.toml.prod
88 lines (72 loc) · 2.92 KB
/
.netlify.toml.prod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Global settings applied to the whole site.
[build]
base = "/"
publish = "app/"
command = "yarn run setup && yarn run build-all"
# Read https://www.netlify.com/docs/continuous-deployment/#deploy-contexts
# to understand how context below works.
[context.production.environment]
APIHOST = "https://platform-api.opentargets.io/"
# 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 = "opentargets:opentargets"
[context.deploy-preview.environment]
APIHOST = "https://platform-api.opentargets.io/"
# [[headers]]
# for = "/*"
# [headers.values]
# # Basic-Auth header
# Basic-Auth = "opentargets:opentargets"
# Branch Deploy context: All deploys that are not in
# 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 = "opentargets:opentargets"
[context.branch-deploy.environment]
APIHOST = "https://platform-api-qc.opentargets.io/"
# [[headers]]
# for = "/*"
# [headers.values]
# # Basic-Auth header
# Basic-Auth = "opentargets:opentargets"
# CAREFUL!!! When you point a particular branch to a specific API below,
# the change will not continue working once the branch is merged into master.
# master.targetvalidation.org will always point to the APIHOST specified in context.branch-deploy.environment above
# [context.branch_name.environment]
# APIHOST = "https://the-api-url-we-want.com"
[context.efo3.environment]
APIHOST = "https://platform-api-qc-efo3.opentargets.io/"
# [[headers]]
# for = "/build/config.json"
# [headers.values]
# Access-Control-Allow-Origin = "*"
#To release:
# 1) create a v3.xx (or whatever version you use) branch. By default it would point to master.
# If instead you need to point it to another DEV api, you can uncomment the block below
# [context."v3.7".environment]
# APIHOST = "https://MYSPECIALAPIBRANCH-dot-open-targets-eu-dev.appspot.com/"
# 2) when backend team tells us the API has been moved to pre-release, and gives you an URL
# (for eg. an API such as prod-20180618-1252-dot-api.opentargets.io)
# 1) uncomment below to point the branch to the pre-release API.
# 2) create a `staging` tag on github using the `draft a new release` functionality
#
# NOTE: The API url SHOULD not end anymore in `open-targets-eu-dev` but
# there should be `prod` somewhere in the name
[context.qa.environment]
APIHOST = "https://platform-api-qc.opentargets.io/"
# [[headers]]
# for = "/*"
# [headers.values]
# # Basic-Auth header
# Basic-Auth = "opentargets:opentargets"
# [context.shipit.environment]
# APIHOST = "http://prod-20180625-1203.api.opentargets.io/"