mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 10:17:55 +02:00
27 lines
706 B
TOML
27 lines
706 B
TOML
|
|
# 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.5"
|
|
NODE_VERSION = "16"
|
|
|
|
[context.production]
|
|
command = "yarn --cwd .. build:packages && yarn netlify:build:production"
|
|
|
|
[context.deploy-preview]
|
|
command = "yarn --cwd .. build:packages && yarn netlify:build:deployPreview"
|
|
|
|
[[plugins]]
|
|
package = "netlify-plugin-cache"
|
|
[plugins.inputs]
|
|
paths = [
|
|
"node_modules/.cache/webpack",
|
|
]
|