Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 04c4bb3

Browse files
vickramdhawalswmitra
authored andcommitted
Introducing a buildtype to config (#14369)
* adding a buildtype as prerelease and switching back the environemnt to production as the analytics server expects that * switching the environment actually to production
1 parent 4300f5a commit 04c4bb3

4 files changed

+8
-5
lines changed

src/brackets.config.dev.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"analyticsDataServerURL" : "https://cc-api-data-stage.adobe.io/ingest",
44
"serviceKey" : "brackets-service",
55
"environment" : "stage",
6-
"update_info_url" : "https://s3.amazonaws.com/files.brackets.io/updates/prerelease/<locale>.json"
6+
"update_info_url" : "https://s3.amazonaws.com/files.brackets.io/updates/prerelease/<locale>.json",
7+
"buildtype" : "dev"
78
}

src/brackets.config.dist.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"analyticsDataServerURL" : "https://cc-api-data.adobe.io/ingest",
44
"serviceKey" : "brackets-service",
55
"environment" : "production",
6-
"update_info_url" : "https://getupdates.brackets.io/getupdates/"
6+
"update_info_url" : "https://getupdates.brackets.io/getupdates/",
7+
"buildtype" : "production"
78
}

src/brackets.config.prerelease.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"healthDataServerURL" : "https://health.brackets.io/healthDataLog",
33
"analyticsDataServerURL" : "https://cc-api-data.adobe.io/ingest",
44
"serviceKey" : "brackets-service",
5-
"environment" : "prerelease",
6-
"update_info_url" : "https://s3.amazonaws.com/files.brackets.io/updates/prerelease/<locale>.json"
5+
"environment" : "production",
6+
"update_info_url" : "https://s3.amazonaws.com/files.brackets.io/updates/prerelease/<locale>.json",
7+
"buildtype" : "prerelease"
78
}

src/strings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ define(function (require, exports, module) {
5656
if (isDevBuild) {
5757
additionalGlobals.BUILD_TYPE = strings.DEVELOPMENT_BUILD;
5858
} else {
59-
if (brackets.config.environment === 'production') {
59+
if (brackets.config.buildtype === 'production') {
6060
additionalGlobals.BUILD_TYPE = strings.RELEASE_BUILD;
6161
} else {
6262
additionalGlobals.BUILD_TYPE = strings.PRERELEASE_BUILD;

0 commit comments

Comments
 (0)