# Note: this file's config override the Netlify UI admin config

# production build
[build]
  base = "/"
  command = "yarn workspace jest-website netlify:ci:production"
  publish = "/website/build"

[build.environment]
  NODE_VERSION = "lts/*"
  NODE_OPTIONS = "--max_old_space_size=4096"
  # default cache
  YARN_ENABLE_GLOBAL_CACHE = "true"
  YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"

# deploy preview build (faster config)
[context.deploy-preview]
  command = "yarn workspace jest-website netlify:ci:deployPreview"

[[plugins]]
  package = "netlify-plugin-cache"
  [plugins.inputs]
    paths = [
      "website/node_modules/.cache",
    ]

# Note: this file's config override the Netlify UI admin config

# production build
[build]
  base = "/"
  command = "yarn workspace jest-website netlify:ci:production"
  publish = "/website/build"

[build.environment]
  NODE_VERSION = "lts/*"
  NODE_OPTIONS = "--max_old_space_size=4096"
  # default cache
  YARN_ENABLE_GLOBAL_CACHE = "true"
  YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"

[context.production]
  # Do not build the site if there's no site-related changes
  ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- website/ docs/ netlify.toml"

# deploy preview build (faster config)
[context.deploy-preview]
  command = "yarn workspace jest-website netlify:ci:deployPreview"

[[plugins]]
  package = "netlify-plugin-cache"
  [plugins.inputs]
    paths = [
      "website/node_modules/.cache",
    ]

Revert "chore(website): remove diff optimization to get a single build"
Revert "chore(website): remove diff optimization to get a single build"

This reverts commit 2bb8e331817298f0601f3dce01f079c46abc7312.
