forked from facebook/docusaurus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
31 lines (23 loc) · 855 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Note: this file's config overrides the Netlify UI admin config
# /!\ due to using a monorepo it can be a bit messy to configure Netlify
# See also https://github.com/netlify/build/issues/2483
[build]
command = "yarn --cwd .. build:packages && yarn build"
publish = "website/build"
[build.environment]
NETLIFY_USE_YARN = "true"
YARN_VERSION = "1.22.19"
NODE_VERSION = "18"
NODE_OPTIONS = "--max_old_space_size=8192"
[context.production]
command = "yarn --cwd .. build:packages && yarn netlify:build:production"
[context.branch-deploy]
command = "yarn --cwd .. build:packages && yarn netlify:build:branchDeploy"
[context.deploy-preview]
command = "yarn --cwd .. build:packages && yarn netlify:build:deployPreview"
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = [
"node_modules/.cache/webpack",
]