Skip to content

Commit

Permalink
fix build script for local environment (#9901)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean1588 authored Sep 21, 2023
1 parent be1ebcb commit c7d369e
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions scripts/build-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,12 @@ if [ "$1" == "preview" ]; then
export HUGO_BASEURL="http://$(origin_bucket_prefix)-$(build_identifier).s3-website.$(aws_region).amazonaws.com"
GOGC=3 hugo --minify --buildFuture --templateMetrics -e "preview"
else
case ${DEPLOYMENT_ENVIRONMENT} in
testing)
if [ "$DEPLOYMENT_ENVIRONMENT" == "testing" ]; then
export HUGO_BASEURL="https://www.pulumi-test.io"
GOGC=3 hugo --minify --buildFuture --templateMetrics -e "preview"
;;
production)
else
GOGC=3 hugo --minify --buildFuture --templateMetrics -e "production"
;;
*)
echo "Unknown environment '${DEPLOYMENT_ENVIRONMENT}'"
exit 1
;;
esac
fi
fi

# Purge unused CSS.
Expand Down

0 comments on commit c7d369e

Please sign in to comment.