Hi,
I am working on small task where we need to pull API data and display,
This API endpoint able to pull data from localhost and other servers
API_BASE_URL is : http://10.20.240.57:8000
In nextjs config file i setup this
async rewrites() {
return [
{
source: ‘/api/:path*’,
destination: process.env.API_BASE_URL + ‘/:path*’, // Proxy to Backend
},
];
},
This is same solution which worked in another application
This time my host is
So when i hit this url : https://monitortrw.netlify.app/api
it should display hello world response but it fail
I logged functions log and found netlify unable to connect:
ERROR Error: connect ETIMEDOUT 10.20.240.57:8000
I cross verified no header or cross origin issue, becauseAPI endpoint work from
other domains menas API testing sites.
This is something rare issue from Netlify environment, could you help me to resolve this?
I already write direcly to Nrtlify support team they suggested to post in forum