Skip to content

Commit

Permalink
remove redirections as they will be handled on Azure for the deployed…
Browse files Browse the repository at this point in the history
… gateway
  • Loading branch information
zkokelj committed May 16, 2024
1 parent f1ec988 commit dc1ee21
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tools/walletextension/frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit dc1ee21

Please sign in to comment.