Skip to content

Commit

Permalink
config: Fix Netlify default cache dir logic
Browse files Browse the repository at this point in the history
Fixes #8710
  • Loading branch information
bep committed Jun 29, 2021
1 parent 49fedbc commit 6c8c0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ func getCacheDir(cfg config.Provider) string {
return addTrailingFileSeparator(cacheDir)
}

// Both of these are fairly distinctive OS env keys used by Netlify.
if os.Getenv("DEPLOY_PRIME_URL") != "" && os.Getenv("PULL_REQUEST") != "" {
// This is always set to true when running on Netlify.
if os.Getenv("NETLIFY") == "true" {
// Netlify's cache behaviour is not documented, the currently best example
// is this project:
// https://github.com/philhawksworth/content-shards/blob/master/gulpfile.js
Expand Down

0 comments on commit 6c8c0c8

Please sign in to comment.