From fd720bd4d7fd93fedb8946cb82a0b63bfefe8f7a Mon Sep 17 00:00:00 2001 From: dannyrb Date: Tue, 16 Jul 2019 09:32:14 -0400 Subject: [PATCH] Attempt to fix deploy preview build --- .netlify/build-deploy-preview.sh | 3 ++- netlify.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.netlify/build-deploy-preview.sh b/.netlify/build-deploy-preview.sh index b1e1ffc06..5b8e2a31b 100644 --- a/.netlify/build-deploy-preview.sh +++ b/.netlify/build-deploy-preview.sh @@ -7,6 +7,7 @@ cd "$(dirname "$0")" # Helpful to verify which versions we're using yarn -v node -v +yarn config set workspaces-experimental true # Install GitBook CLI echo 'Installing Gitbook CLI' @@ -60,7 +61,7 @@ mkdir ./docs/latest/_book/demo/ # Install build deps and all monorepo package dependencies. Yarn Workspaces # should also symlink all projects appropriately -yarn install +yarn install --no-ignore-optional --pure-lockfile # Navigate to our Viewer project cd ./platform/viewer/ diff --git a/netlify.toml b/netlify.toml index c2d0d2ea0..4ba777999 100644 --- a/netlify.toml +++ b/netlify.toml @@ -33,7 +33,7 @@ [context.deploy-preview] base = "" publish = "docs/latest/_book/" - command = ".netlify/build-deploy-preview.sh" + command = "chmod +x .netlify/build-deploy-preview.sh && .netlify/build-deploy-preview.sh" # Redirects and headers are GLOBAL for all builds – they do not get scoped to # contexts no matter where you define them in the file.