mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
49fedbc51c
commit
6c8c0c8b6a
1 changed files with 2 additions and 2 deletions
|
@ -412,8 +412,8 @@ func getCacheDir(cfg config.Provider) string {
|
||||||
return addTrailingFileSeparator(cacheDir)
|
return addTrailingFileSeparator(cacheDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Both of these are fairly distinctive OS env keys used by Netlify.
|
// This is always set to true when running on Netlify.
|
||||||
if os.Getenv("DEPLOY_PRIME_URL") != "" && os.Getenv("PULL_REQUEST") != "" {
|
if os.Getenv("NETLIFY") == "true" {
|
||||||
// Netlify's cache behaviour is not documented, the currently best example
|
// Netlify's cache behaviour is not documented, the currently best example
|
||||||
// is this project:
|
// is this project:
|
||||||
// https://github.com/philhawksworth/content-shards/blob/master/gulpfile.js
|
// https://github.com/philhawksworth/content-shards/blob/master/gulpfile.js
|
||||||
|
|
Loading…
Reference in a new issue