Epic Next.js 14 Tutorial: Learn Next.js by building a real-life project part 3

Double check that your query params are correct in the loaders.ts file inside the getGlobalPageData function.

export async function getGlobalPageData() {

  const url = new URL("/api/global", baseUrl);

  url.search = qs.stringify({
    populate: [
      "header.logoText",
      "header.ctaButton",
      "footer.logoText",
      "footer.socialLink",
    ],
  })

  const data = await fetchData(url.href);
  return data;

}

Also, console log the return and see what you are getting.

And finally double check that you have data in the field in Strapi Admin.

Let me know if this helped.