Update next.config.mjs
This commit is contained in:
@@ -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 [
|
||||||
|
{
|
||||||
|
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