Skip to content

Commit 4ec4b98

Browse files
authored
chore: cache yarn deps on netlify (#12725)
1 parent 62afb83 commit 4ec4b98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

netlify.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Note: this file's config override the Netlify UI admin config
32

43
# production build
@@ -10,6 +9,9 @@
109
[build.environment]
1110
NODE_VERSION = "lts/*"
1211
NODE_OPTIONS = "--max_old_space_size=4096"
12+
# default cache
13+
YARN_ENABLE_GLOBAL_CACHE = "true"
14+
YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"
1315

1416
[context.production]
1517
# Do not build the site if there's no site-related changes
@@ -19,7 +21,6 @@
1921
[context.deploy-preview]
2022
command = "yarn workspace jest-website netlify:ci:deployPreview"
2123

22-
2324
[[plugins]]
2425
package = "netlify-plugin-cache"
2526
[plugins.inputs]

0 commit comments

Comments
 (0)