Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
feat: update for doks v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Jul 5, 2021
1 parent 14f1a3f commit f7b5720
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 478 deletions.
4 changes: 4 additions & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ rel = "sitemap"
blog = "/blog/:title/"

[module]
[module.hugoVersion]
extended = true
min = "0.80.0"
max = ""
[[module.mounts]]
source = "node_modules/@hyas/doks/archetypes"
target = "archetypes"
Expand Down
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 f7b5720

Please sign in to comment.