Skip to content

Commit

Permalink
fix: recorder route
Browse files Browse the repository at this point in the history
  • Loading branch information
samialdury committed Feb 25, 2022
1 parent a3c2815 commit 7776180
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/proxy/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export const handler = async (

for (const route of ROUTES) {
// Legacy routes, will be removed
if (req.url.startsWith('/record') || req.url.startsWith('/v2/record')) {
if (
req.url !== '/recorder.js' &&
(req.url.startsWith('/record') || req.url.startsWith('/v2/record'))
) {
const targetHost = config.get('proxy.hosts.webSdkWriter')
const url = `${targetHost}${req.url}`
await pipeResponse(targetHost, url, req, res)
Expand Down

0 comments on commit 7776180

Please sign in to comment.