Skip to content

Commit

Permalink
Merge branch 'development' of github.com:epam/ai-dial-chat into feat/…
Browse files Browse the repository at this point in the history
…publish-file-tests

# Conflicts:
#	apps/chat-e2e/src/core/dialOverlayFixtures.ts
#	apps/chat-e2e/src/testData/api/itemApiHelper.ts
#	apps/chat-e2e/src/testData/expectedConstants.ts
  • Loading branch information
irinakartun committed Jan 20, 2025
2 parents 5242666 + 345c989 commit a33f5a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/chat-e2e/src/testData/api/baseApiHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,13 @@ export class BaseApiHelper {
}
return endpoint;
}

//function to override the API host if overlay sandbox is running
public getHost(endpoint: string) {
const baseUrl = config.use!.baseURL;
if (baseUrl === overlayHost) {
endpoint = process.env.NEXT_PUBLIC_OVERLAY_HOST + endpoint;
}
return endpoint;
}
}

0 comments on commit a33f5a2

Please sign in to comment.