self fetching on workers and client sides

I am writing a fetch request that can be called from both the server and client with the following code. I am using Nuxtjs 3.

const {data, error } = await useAsyncData(
     'API_FORWARD_UID', (): Promise<IUIDGetResponse> => $fetch(`${config.public.baseUrl}/api/forward/${uid}`, {
       method: 'GET'
     })
)


It works normally in the local develop environment, but when uploaded to Cloudflare worker, Error 522 occurs. I would like to know if you have any information about this.
logo-green-black.png
Was this page helpful?