Merge branch 'feature/appsmith-production-staging-distinction' into 'release'

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

See merge request theappsmith/internal-tools-client!159
This commit is contained in:
Arpit Mohan 2019-11-22 12:44:30 +00:00
commit 00a2f8aac9
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;
}