What to do in this scenario?

hi ! i have a website where i use nuxtjs (ssr mode) on front-end , expressjs on back-end (as an api). i use nuxt/sitemap package and fetch latest posts from api to create dynamic routes for sitemap.xml. i set up cloudflare and used it but then removed it. the problem is when nuxt requests the api internally on server-side rendering it requests it through local ip and as far as it seems cloudflare doesn’t allow localhost to send a request. and if i change request url from absolute url to relative path , then some of opengraph tags and some meta icons don’t work as expected. i’ve seen websites which use cloudflare and nuxt and don’t have a problem. what can i do in this scenario ? i think about generating sitemap and storing the required meta files on another server or in a static storage.