diff --git a/apps/web/config/urls.ts b/apps/web/config/urls.ts index dd41e6b..8558924 100644 --- a/apps/web/config/urls.ts +++ b/apps/web/config/urls.ts @@ -48,8 +48,8 @@ function getUrls() { URL_CORE_FINGAP: withBasePath(urls.URL_CORE_FINGAP_PROXY), URL_CRM_CREATEKP: withBasePath(urls.URL_CRM_CREATEKP_PROXY), URL_CRM_GRAPHQL: withBasePath(urls.URL_CRM_GRAPHQL_PROXY), - URL_ELT_KASKO: urls.URL_ELT_KASKO, - URL_ELT_OSAGO: urls.URL_ELT_OSAGO, + URL_ELT_KASKO: urls.URL_ELT_KASKO_PROXY, + URL_ELT_OSAGO: urls.URL_ELT_OSAGO_PROXY, URL_GET_USER: withBasePath(urls.URL_GET_USER_PROXY), }; } diff --git a/apps/web/constants/urls.js b/apps/web/constants/urls.js index 3c3534d..a8e66b4 100644 --- a/apps/web/constants/urls.js +++ b/apps/web/constants/urls.js @@ -4,7 +4,7 @@ module.exports = { URL_CORE_FINGAP_PROXY: '/api/core/fingap', URL_CRM_CREATEKP_PROXY: '/api/crm/create-kp', URL_CRM_GRAPHQL_PROXY: '/api/graphql/crm', - URL_ELT_KASKO: '/api/elt/kasko', - URL_ELT_OSAGO: '/api/elt/osago', + URL_ELT_KASKO_PROXY: '/api/elt/kasko', + URL_ELT_OSAGO_PROXY: '/api/elt/osago', URL_GET_USER_PROXY: '/api/auth/user', }; diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 2bed37a..f54b9f7 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -56,6 +56,14 @@ const nextConfig = { destination: env.URL_1C_TRANSTAX_DIRECT, source: urls.URL_1C_TRANSTAX_PROXY, }, + { + destination: env.URL_ELT_KASKO_DIRECT, + source: urls.URL_ELT_KASKO_PROXY, + }, + { + destination: env.URL_ELT_OSAGO_DIRECT, + source: urls.URL_ELT_OSAGO_PROXY, + }, ...favicons.map((fileName) => buildFaviconRewrite(`/${fileName}`)), ]; },