The /posts and /post/:id pages need data from the api to render. On deploy, if /posts makes an api call to /api/posts to get the api response for server side rendering, deploy will return an error saying 508: Loop Detected (LOOP_DETECTED) Recursive requests to the same deployment cannot be processed.. It presents itself in those pages returning internal server error because that error currently isn't handled and the response body is not valid JSON like it expects from the api.
The
/posts
and/post/:id
pages need data from the api to render. On deploy, if/posts
makes an api call to/api/posts
to get the api response for server side rendering, deploy will return an error saying508: Loop Detected (LOOP_DETECTED) Recursive requests to the same deployment cannot be processed.
. It presents itself in those pages returninginternal server error
because that error currently isn't handled and the response body is not valid JSON like it expects from the api.