I'm worried that we are writing this file while serving from it elsewhere. We need some strategy to make this an atomic update. One strategy might be to write to sitemap.json.tmp and then rename it when that is successful. There might be some cross-platform node best practice for atomic file updates.