fix: update for netlify checks

This commit is contained in:
Henk Verlinde 2021-07-05 09:51:09 +02:00
parent 379768538d
commit 43c2d3f115
3 changed files with 12 additions and 7 deletions

View File

@ -77,6 +77,10 @@ rel = "sitemap"
blog = "/blog/:title/"
[module]
[module.hugoVersion]
extended = true
min = "0.80.0"
max = ""
[[module.mounts]]
source = "assets"
target = "assets"

View File

@ -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"

View File

@ -23,7 +23,7 @@
"lint": "npm run -s lint:scripts && npm run -s lint:styles && npm run -s lint:markdown",
"lint:scripts": "eslint assets/js config functions",
"lint:styles": "stylelint \"assets/scss/**/*.{css,sass,scss,sss,less}\"",
"lint:markdown": "markdownlint *.md content/**/*.md",
"lint:markdown": "markdownlint \"*.md\" \"content/**/*.md\"",
"server": "exec-bin bin/hugo/hugo server",
"test": "npm run -s lint",
"env": "env",
@ -60,6 +60,6 @@
"stylelint-config-standard": "^22.0"
},
"otherDependencies": {
"hugo": "0.84.0"
"hugo": "0.84.4"
}
}