Skip to content

Commit

Permalink
#581 Fix proxy pathing again
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Oct 30, 2024
1 parent 9311ea3 commit faebb87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adjacent-servers/adjacent-servers-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ const createSwaggerInterceptor = (path) => {
return response
.replace(
"'/api'",
`window.location.pathname.replace('/${path}/api.html', '${
`'${
(process.env.EXTERNAL_ROOT_PATH || "") +
(process.env.ROOT_PATH || "")
}/${path}/api')`
}/${path}/api'`
)
.replace(
"'/docs/oauth2-redirect'",
`window.location.pathname.replace('/${path}/api.html', '${
`'${
(process.env.EXTERNAL_ROOT_PATH || "") +
(process.env.ROOT_PATH || "")
}/${path}/docs/oauth2-redirect')`
}/${path}/docs/oauth2-redirect'`
); // manipulate response and return the result
}
return responseBuffer;
Expand Down

0 comments on commit faebb87

Please sign in to comment.