From dc1ee211ede79cee834e6a089b045dcf36ef2e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Kokelj?= Date: Thu, 16 May 2024 09:46:24 +0200 Subject: [PATCH] remove redirections as they will be handled on Azure for the deployed gateway --- tools/walletextension/frontend/next.config.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tools/walletextension/frontend/next.config.js b/tools/walletextension/frontend/next.config.js index 0486c5155f..50f8420725 100644 --- a/tools/walletextension/frontend/next.config.js +++ b/tools/walletextension/frontend/next.config.js @@ -4,23 +4,6 @@ const nextConfig = { images: { unoptimized: true, }, - async redirects() { - const destinationUrl = process.env.NEXT_PUBLIC_API_GATEWAY_URL || 'https://testnet.ten.xyz'; - return [ - { - source: '/v1/:path*', - destination: `${destinationUrl}/v1/:path*`, - permanent: true, - has: [ - { - type: 'header', - key: 'x-forwarded-proto', - value: '(https|http)', - }, - ], - }, - ] - }, }; module.exports = nextConfig;