Update next.config.mjs
This commit is contained in:
@@ -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",
|
||||
}
|
||||
],
|
||||
},
|
||||
};
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/api/:path*',
|
||||
destination: 'https://internal-api.inboxi.ng/api/:path*', // Replace with your external domain URL
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user