From da77d1576284fd9f5d6db23ca774e39ffad78061 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Tue, 16 Apr 2019 16:39:36 -0400 Subject: [PATCH] Be more explicit with our versions --- netlify.toml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 9e9c660dc..2870cd448 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,4 +2,17 @@ # Directory (relative to root of your repo) that contains the deploy-ready # HTML files and assets generated by the build. If a base directory has # been specified, include it in the publish directory path. - publish = "docs/latest/_book/" \ No newline at end of file + 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 +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 \ No newline at end of file