From f5b980b9965d7016a5fd70704a6e44b4e6396e7b Mon Sep 17 00:00:00 2001 From: Vezpi Date: Wed, 4 Jun 2025 21:46:29 +0000 Subject: [PATCH] fix: draft and URL --- docker/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 85a5859..b59c26b 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -10,6 +10,7 @@ DRAFTS="" # Add drafts for preview if [ $BRANCH == "preview" ]; then + echo "- Adding draft pages for the site" DRAFTS="--buildDrafts" fi @@ -19,7 +20,7 @@ git clone --depth 1 --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_ # Generate static files with hugo echo "- Building site with Hugo v$HUGO_VERSION in $HUGO_DEST..." -hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" $DRAFTS --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings +hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --baseURL="https://${URL}" "$DRAFTS" --logLevel info --cleanDestinationDir --gc --panicOnWarning --printI18nWarnings # Start nginx echo "- Starting Nginx..."