File: netlify.toml

package info (click to toggle)
node-jest 29.6.2~ds1%2B~cs73.45.28-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 33,020 kB
  • sloc: javascript: 21,648; makefile: 47; sh: 21
file content (31 lines) | stat: -rw-r--r-- 899 bytes parent folder | download | duplicates (2)
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 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 = "16"
  NODE_OPTIONS = "--max_old_space_size=4096"
  # default cache
  YARN_ENABLE_GLOBAL_CACHE = "true"
  YARN_GLOBAL_FOLDER = "/opt/buildhome/.yarn_cache"
  YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"
  YARN_VERSION = "3.3.1"

[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",
    ]