Skip to content

Commit

Permalink
fix: ensure cache/json exists (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic authored Sep 21, 2021
1 parent dd7c4a3 commit 8e8247b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export async function onPreBuild({
await checkEnvironment({ utils })
}
await restoreCache({ utils, publish: PUBLISH_DIR })
const CACHE_DIR = normalizedCacheDir(PUBLISH_DIR)

// Work around Gatsby bug https://github.com/gatsbyjs/gatsby/issues/33262
await fs.ensureDir(join(CACHE_DIR, 'json'))

checkGatsbyConfig({ utils, netlifyConfig })
}
Expand Down

0 comments on commit 8e8247b

Please sign in to comment.