H
H
herooid2021-12-09 12:50:46
JavaScript
herooid, 2021-12-09 12:50:46

How to update file content when accessing Gatsby.js?

There is a task: when opening site.com/file.xml, get up-to-date data. This incremental data is taken from an API from another service. How can I ensure that the contents of a file are updated when a link is opened or once in a while?

Application on Gatsby.js, hosted on Netlify.
Now the file is created on build in the public folder via gatsby-node.js.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question