Build serverless function separately?

I have a site with one serverless function. The serverless function mostly returns a summary of some data which is committed to the repo, which is frequently updated. However whenever I update this data, it triggers a full rebuild of the site which is unnecessary since only the serverless files have changed.

Is it possible to cache the rest of the build? Seems like a pointless use of resources which all im doing is adding a data file to the serverless function.

hmm, good question. Before we start digging into specifics, did you read through this guide? There might be something helpful in here.

if not, let us know.