diff --git a/run-build-functions.sh b/run-build-functions.sh index 1b664d4c..50912a1e 100755 --- a/run-build-functions.sh +++ b/run-build-functions.sh @@ -112,6 +112,7 @@ run_yarn() { if [[ "${yarn_version%%.*}" -gt "1" ]] then # The cache-folder flag is deprecated in Yarn 2 + # Override the environment variable if the user set any. export YARN_CACHE_FOLDER="$NETLIFY_BUILD_BASE/.yarn_cache" else # Remove the cache-folder flag if the user set any.