Adding the netlify.toml for deploy contexts for different environment variables for different branches

This commit is contained in:
Arpit Mohan 2019-11-22 16:34:23 +05:30
parent ee010de118
commit a05209aa69
2 changed files with 17 additions and 0 deletions

15
app/client/netlify.toml Normal file
View File

@ -0,0 +1,15 @@
[context.production]
[context.production.environment]
REACT_APP_ENVIRONMENT = "PRODUCTION"
[context.release]
[context.release.environment]
REACT_APP_ENVIRONMENT = "STAGING"
[context.develop]
[context.develop.environment]
REACT_APP_ENVIRONMENT = "DEVELOPMENT"
[context.deploy-preview]
[context.deploy-preview.environment]
REACT_APP_ENVIRONMENT = "DEVELOPMENT"

View File

@ -45,6 +45,8 @@ export const appInitializer = () => {
case "STAGING":
Sentry.init(SENTRY_STAGE_CONFIG);
break;
case "DEVELOPMENT":
break;
case "LOCAL":
break;
}