diff options
| author | Stanley Yip <33562077+yipstanley@users.noreply.github.com> | 2019-07-30 19:40:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-30 19:40:00 -0400 |
| commit | b26a257e09b9f4d8375806acb7ad143802b93603 (patch) | |
| tree | 230fe76c093084c45105ec4c3b7a53f80b3eba86 /src/server/remapUrl.ts | |
| parent | 36ac0409b2a7a752727eaf2fc289d8cc72487619 (diff) | |
| parent | 53b8bd7ff75ee500c999a4cbc87ed75e59ef1c21 (diff) | |
Merge branch 'master' into toggle_claire
Diffstat (limited to 'src/server/remapUrl.ts')
| -rw-r--r-- | src/server/remapUrl.ts | 7 |
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}` }; } } } |
