arkitel / frontend /next.config.js
CBV01
feat(campaigns): real telegram metrics, fix failed card colors, compact card height, fix account avatar, and accurate group permission detection
d3be83c
Raw History Blame Contribute Delete
432 Bytes
const nextConfig = {
async rewrites() {
const base = process.env.NEXT_PUBLIC_API_URL || 'https://arkitel.onrender.com';
const normalized = base.replace(/\/$/, '');
return [
{
source: '/api/:path*',
destination: `${normalized}/api/:path*`,
},
{
source: '/static/:path*',
destination: `${normalized}/static/:path*`,
},
];
},
};
module.exports = nextConfig;