Skip to content

Commit

Permalink
feat: update netlify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Jul 5, 2021
1 parent 3786625 commit 692efd6
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 465 deletions.
11 changes: 6 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@
[build.environment]
NODE_VERSION = "16.3.0"
NPM_VERSION = "7.16.0"
HUGO_VERSION = "0.84.4"

[context.production]
command = "exec-bin bin/hugo/hugo --gc --minify"
command = "hugo --gc --minify"

[context.deploy-preview]
command = "exec-bin bin/hugo/hugo --gc --minify -b $DEPLOY_PRIME_URL"
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
command = "exec-bin bin/hugo/hugo --gc --minify -b $DEPLOY_PRIME_URL"
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.next]
command = "exec-bin bin/hugo/hugo --gc --minify"
command = "hugo --gc --minify"

[context.next.environment]
HUGO_ENV = "next"

[dev]
framework = "#custom"
command = "shx rm -rf public resources && exec-bin bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender"
command = "shx rm -rf public resources && hugo server --bind=0.0.0.0 --disableFastRender"
targetPort = 1313
port = 8888
publish = "public"
Expand Down
Loading

0 comments on commit 692efd6

Please sign in to comment.