Skip to content

Commit

Permalink
Update Netlify Build
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Jun 3, 2022
1 parent 426d078 commit a47ccd3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
publish = "build/"
command = "CI='' yarn run build"

+ ## Yarn 3 cache does not work out of the box as of Jan 2022. Context:
+ ## https://github.com/netlify/build/issues/1535#issuecomment-1021947989
[build.environment]
NETLIFY_USE_YARN = "true"
YARN_VERSION = "3.2.1"
YARN_FLAGS = "--immutable"
YARN_ENABLE_GLOBAL_CACHE = "true"
YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"
YARN_FLAGS = "--check-cache"
YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"
## YARN_ENABLE_GLOBAL_CACHE = "true"
## YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"

[[redirects]]
from = "/api/*"
Expand Down

0 comments on commit a47ccd3

Please sign in to comment.