build: update config

This commit is contained in:
George Cushen
2025-08-16 02:08:34 +01:00
parent 04d15375b2
commit 6fb35fc7aa
6 changed files with 429 additions and 8 deletions
+9 -3
View File
@@ -15,7 +15,8 @@ trap "exitfn" INT # Set up SIGINT trap to call function.
# due to Hugo limitation requiring Hugo to be run from site dir
cd "starters/$1"
export WC_DEMO=true \
export HUGO_BLOX_DEMO=true \
export HUGO_BLOX_DEBUG=true \
export HUGO_ENVIRONMENT=development \
export HUGOxPARAMSxDECAP_CMSxLOCAL_BACKEND=true \
export HUGO_MODULE_REPLACEMENTS="github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 -> ../../../modules/blox-bootstrap,
@@ -24,9 +25,14 @@ github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal -> ../../../mod
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind -> ../../../modules/blox-tailwind,
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms -> ../../../modules/blox-plugin-decap-cms,
github.com/HugoBlox/hugo-blox-builder/modules/blox-core -> ../../../modules/blox-core,
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo -> ../../../modules/blox-seo" \
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo -> ../../../modules/blox-seo,
github.com/HugoBlox/hugo-blox-builder/modules/blox-analytics -> ../../../modules/blox-analytics" \
# START PAGEFIND
hugo && \
npm_config_yes=true npx pagefind --site "public" --output-subdir ../static/pagefind && \
hugo server --panicOnWarning --renderStaticToDisk -F --port 8081 --bind 0.0.0.0
# END PAGEFIND
# --renderStaticToDisk --printUnusedTemplates --panicOnWarning
# --templateMetrics --templateMetricsHints --ignoreCache --noHTTPCache
hugo server --disableFastRender --printI18nWarnings --printPathWarnings --gc --port 8081 --bind 0.0.0.0 --logLevel debug
trap SIGINT # Restore signal handling to previous before exit.