2019-04-29 14:33:48 +02:00
|
|
|
# https://www.netlify.com/docs/netlify-toml-reference/
|
|
|
|
|
|
2019-03-04 12:51:53 +01:00
|
|
|
[build]
|
2019-04-29 14:33:48 +02:00
|
|
|
# Directory (relative to root of your repo) that contains the deploy-ready
|
2019-03-04 12:51:53 +01:00
|
|
|
# HTML files and assets generated by the build. If a base directory has
|
|
|
|
|
# been specified, include it in the publish directory path.
|
2019-04-16 22:39:36 +02:00
|
|
|
publish = "docs/latest/_book/"
|
|
|
|
|
|
|
|
|
|
# COMMENT: NODE_VERSION in root `.nvmrc` takes priority
|
|
|
|
|
# COMMENT: Why we specify YARN_FLAGS: https://www.netlify.com/docs/build-gotchas/#yarn
|
|
|
|
|
[build.environment]
|
|
|
|
|
NODE_VERSION = "10.15.3"
|
|
|
|
|
YARN_VERSION = "1.15.2"
|
|
|
|
|
YARN_FLAGS = "--no-ignore-optional --pure-lockfile"
|
|
|
|
|
|
|
|
|
|
# COMMENT: This a rule for Single Page Applications
|
2019-04-29 14:52:52 +02:00
|
|
|
# [[redirects]]
|
|
|
|
|
# from = "/*"
|
|
|
|
|
# to = "/index.html"
|
|
|
|
|
# status = 200
|
|
|
|
|
|
2019-04-16 22:39:36 +02:00
|
|
|
[[redirects]]
|
2019-04-29 15:13:31 +02:00
|
|
|
from = "/*"
|
2019-04-29 14:52:52 +02:00
|
|
|
to ="/demo/index.html"
|
2019-04-29 14:33:48 +02:00
|
|
|
status = 200
|