trade-frontend/next.config.js
Claude 677b844aaa
rebrand(lethean): update branding, ports, and config for Lethean blockchain
- Coin: Zano → Lethean, ticker: ZAN/ZANO → LTHN
- Ports: 11211 → 36941 (mainnet RPC), 46941 (testnet RPC)
- Wallet: 11212 → 36944/46944
- Address prefix: iTHN
- URLs: zano.org → lethean.io
- Explorer links: explorer.lthn.io

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 22:24:09 +01:00

54 lines
939 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: [
'antd',
'rc-util',
'rc-pagination',
'rc-picker',
'rc-input',
'rc-table',
'rc-select',
'rc-tree',
'rc-dropdown',
'rc-menu',
'rc-tabs',
'rc-tooltip',
'rc-notification',
'@ant-design/icons',
'@ant-design/cssinjs',
],
async redirects() {
return [
{
source: '/',
destination: '/dex',
permanent: false,
},
];
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/i,
resourceQuery: /url/,
type: 'asset/resource',
});
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
resourceQuery: { not: [/url/] },
use: ['@svgr/webpack'],
});
return config;
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`,
},
];
},
};
export default nextConfig;