Call netlify functions during build time

Hi,

I’m trying to deploy a nextjs application.
Some pages need to be populated with data fetched from third-party API.
so i’ve done lambda functions that works correctly on my local because i serve/build functions independently from application.
But on netlify , at build time on branch-deploy context, my static pages can’t be generated because of my lambda functions are not served yet…

Any help would be appreciated. thanks!

You can’t call them during build time because they’re not yet deployed. I think you can host the functions on a different site and try calling those.