There is no any CORS related error in log and it’s work in local build environment, request source indicate Next.js Middleware
here it is
"GET /blogs/list/get HTTP/1.1" 200 1232 "-" "Next.js Middleware"
but there is no log in production environment for the same api and no request at all, is there any specific configuration I shall make?
I wwant this fetch request from server side component to work in production/GCP cloud run.
UPDATE: I checked my nginx log, there is no any error, it’s not even able to hit the server.
3
Solved!
Previously my runtime variable in layout file wa set as :
export const runtime = "edge";
Now I changed it to :
export const runtime = "nodejs";
and it works!