From 18369d568193bccddd01bcefa18c512c08849bbe Mon Sep 17 00:00:00 2001 From: Alfetopito Date: Mon, 7 Oct 2024 17:22:38 +0100 Subject: [PATCH] Revert "chore: temporarily hard code cowswap PR url for testing" This reverts commit 7480038630e6ff31f94ada5d6d9dd1b64773009a. --- .../src/app/configurator/hooks/useWidgetParamsAndSettings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/widget-configurator/src/app/configurator/hooks/useWidgetParamsAndSettings.ts b/apps/widget-configurator/src/app/configurator/hooks/useWidgetParamsAndSettings.ts index f3e993ab41..69143ec592 100644 --- a/apps/widget-configurator/src/app/configurator/hooks/useWidgetParamsAndSettings.ts +++ b/apps/widget-configurator/src/app/configurator/hooks/useWidgetParamsAndSettings.ts @@ -11,8 +11,8 @@ const getBaseUrl = (): string => { if (isLocalHost) return 'http://localhost:3000' if (isDev) return 'https://dev.swap.cow.fi' if (isVercel) { - // TODO: revert before merging!! - return 'https://swap-dev-git-fix-widget-configurator-fee-recipient-cowswap.vercel.app/' + const prKey = window.location.hostname.replace('widget-configurator-git-', '').replace('-cowswap.vercel.app', '') + return `https://swap-dev-git-${prKey}-cowswap.vercel.app` } return 'https://swap.cow.fi'