Skip to content

Commit

Permalink
adding custom build command for netlify deploy preview
Browse files Browse the repository at this point in the history
Signed-off-by: Rakesh PR <rakesh.pr@mayadata.io>
  • Loading branch information
rakeshPRaghu authored and kmova committed Aug 28, 2021
1 parent 39ad5f6 commit 1154e57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
base = "docs/"
publish = "build/"
command = "yarn run build"


[context.deploy-preview]
base = "docs/"
publish = "/"
command = "yarn run previewBuild"
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "docusaurus start",
"prebuild": "yarn run write-translations",
"build": "docusaurus build",
"previewBuild": "docusaurus build --out-dir docs",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down

0 comments on commit 1154e57

Please sign in to comment.