aboutsummaryrefslogtreecommitdiff
path: root/src/server/remapUrl.ts
diff options
context:
space:
mode:
authorStanley Yip <33562077+yipstanley@users.noreply.github.com>2019-07-30 19:41:00 -0400
committerGitHub <noreply@github.com>2019-07-30 19:41:00 -0400
commita2a73a1ad032979ea6eea06aa65354841e0ef0fa (patch)
tree00e38b12a22dcc52253e2d7c3e35efee42ad80cf /src/server/remapUrl.ts
parentc53d5fb0e5162cf27d6b5e5ed0ceb35f2461302e (diff)
parent80e6356692da7bffaad2efccf01500173c488de0 (diff)
Merge branch 'master' into text_box_ab
Diffstat (limited to 'src/server/remapUrl.ts')
-rw-r--r--src/server/remapUrl.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/remapUrl.ts b/src/server/remapUrl.ts
index 6f4d6642f..69c766d56 100644
--- a/src/server/remapUrl.ts
+++ b/src/server/remapUrl.ts
@@ -6,7 +6,8 @@ const suffixMap: { [type: string]: true } = {
"video": true,
"pdf": true,
"audio": true,
- "web": true
+ "web": true,
+ "image": true
};
async function update() {
@@ -30,10 +31,10 @@ async function update() {
const value = fields[key];
if (value && value.__type && suffixMap[value.__type]) {
const url = new URL(value.url);
- if (url.href.includes("azure")) {
+ if (url.href.includes("localhost") && url.href.includes("Bill")) {
dynfield = true;
- update.$set = { ["fields." + key + ".url"]: `${url.protocol}//localhost:1050${url.pathname}` };
+ update.$set = { ["fields." + key + ".url"]: `${url.protocol}//dash-web.eastus2.cloudapp.azure.com:1050${url.pathname}` };
}
}
}