push workspace enabled to initial command; remove second yarn install; use npx to call gitbook cli commands
This commit is contained in:
1 parent
fd720bd4d7
commit
ff21408440
2 files changed
+7
-8
No files matched your search
+2
-2
@@ -18,9 +18,9 @@
|
||||
[build.environment]
|
||||
NODE_VERSION = "10.16.0"
|
||||
YARN_VERSION = "1.17.3"
|
||||
RUBY_VERSION = "2.6.2"
|
||||
YARN_FLAGS = "--no-ignore-optional --pure-lockfile"
|
||||
|
||||
|
||||
# Production context: all deploys from the Production branch set in your site's
|
||||
# deploy contexts will inherit these settings.
|
||||
# [context.production]
|
||||
@@ -33,7 +33,7 @@
|
||||
[context.deploy-preview]
|
||||
base = ""
|
||||
publish = "docs/latest/_book/"
|
||||
command = "chmod +x .netlify/build-deploy-preview.sh && .netlify/build-deploy-preview.sh"
|
||||
command = "yarn config set workspaces-experimental true && 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.
|
||||
|
||||
Reference in new issue
Block a user