Skip to content

Commit

Permalink
Build config simplification & script tweak (etcd-io#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Nov 2, 2021
1 parent 731dd26 commit 7b572bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[build]
publish = "public"
command = "npm run build:production"
command = "npm run build:preview"

[build.environment]
GO_VERSION = "1.16" # Temporary, while we need to build htmltext >v0.14

[context.deploy-preview]
command = "npm run build:preview"

[context.branch-deploy]
command = "npm run build:preview"
[context.production]
command = "npm run build:production"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"_check-links": "make check-links",
"build-and-serve": "npm run build && npm run serve",
"build:preview": "hugo --cleanDestinationDir -DFE --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
"build:preview": "hugo --cleanDestinationDir -e dev -DFE --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
"build:production": "hugo --cleanDestinationDir --minify",
"build": "hugo --cleanDestinationDir -e dev -DFE",
"check-links:all": "HTMLTEST_ARGS= npm run _check-links",
Expand Down

0 comments on commit 7b572bc

Please sign in to comment.