Update next.config.mjs

This commit is contained in:
NotII
2025-03-21 02:00:17 +01:00
parent 924ad5b37d
commit b06e2ca0b1

View File

@@ -1,17 +1,26 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
images: { images: {
remotePatterns: [ remotePatterns: [
{ {
protocol: "https", protocol: "https",
hostname: "api.telegram.org", hostname: "api.telegram.org",
}, },
{ {
protocol: "https", protocol: "https",
hostname: "telegram.org", hostname: "telegram.org",
} }
], ],
}, },
}; async rewrites() {
return [
export default nextConfig; {
source: '/api/:path*',
destination: 'https://internal-api.inboxi.ng/api/:path*', // Replace with your external domain URL
},
];
},
};
export default nextConfig;