diff --git a/src/_data/links.js b/src/_data/links.js index ab62c42..d83b777 100644 --- a/src/_data/links.js +++ b/src/_data/links.js @@ -52,6 +52,9 @@ const cachedContent = () => { } const storeCache = (content = []) => { + if (!fs.existsSync('.cache')) { + fs.mkdirSync('.cache'); + } fs.writeFileSync(cacheFile, JSON.stringify(content)); }