diff --git a/next.config.mjs b/next.config.mjs index c51c546..851867e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,17 +1,26 @@ /** @type {import('next').NextConfig} */ const nextConfig = { images: { - remotePatterns: [ - { - protocol: "https", - hostname: "api.telegram.org", - }, - { - protocol: "https", - hostname: "telegram.org", - } - ], + remotePatterns: [ + { + protocol: "https", + hostname: "api.telegram.org", + }, + { + protocol: "https", + hostname: "telegram.org", + } + ], }, -}; - -export default nextConfig; + async rewrites() { + return [ + { + source: '/api/:path*', + destination: 'https://internal-api.inboxi.ng/api/:path*', // Replace with your external domain URL + }, + ]; + }, + }; + + export default nextConfig; + \ No newline at end of file