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.