Hi, I have this function that is built like node-fetch, except it also writes the output to a json file. These are the function and file paths:
What I want is the function to run only when I choose to deploy the website (or autobuild and deploy every X hours), so the file is updated regularly and I don’t have any client API calls.
How can I do this? Changing the name of the function to deploy-building, though it seems to run it when I hit
netlify deploy -p, doesn’t seem to create the file (which is triggered locally during development if I open the function path).