Skip to content

feat(e2e): add support running behind proxy #5348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 9, 2022
Merged
Prev Previous commit
Next Next commit
fixup: formatting
  • Loading branch information
jsjoeio committed Aug 9, 2022
commit 06b91dfd88c67ee7cd8ebf4b5139fab4fb2fa37a
2 changes: 1 addition & 1 deletion test/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function isAddressInfo(address: unknown): address is net.AddressInfo {
*/
export async function getMaybeProxiedCodeServer(codeServer: CodeServerPage | CodeServer): Promise<string> {
let address = await codeServer.address()
if (process.env.USE_PROXY === "1") {
if (process.env.USE_PROXY === "1") {
const uri = new URL(address)
return `http://${uri.hostname}:${REVERSE_PROXY_PORT}/${uri.port}/${REVERSE_PROXY_BASE_PATH}/`
}
Expand Down