trade-frontend/next.config.js
AzizbekFayziyev 75a1aacc91 finish
2025-06-02 11:40:07 +05:00

37 lines
666 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
async redirects() {
return [
{
source: '/',
destination: '/dex',
permanent: false,
},
// {
// source: '/((?!maintenance).*)', // Match everything except "/maintenance"
// destination: '/maintenance',
// permanent: false,
// },
];
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader'],
});
return config;
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: `${process.env.API_URL}/api/:path*`
}
]
},
};
export default nextConfig;