Make prod builds work

This commit is contained in:
Laurence Gill 2023-06-16 09:11:05 +01:00
parent 3e5b769311
commit 3ed8fbb6d4
No known key found for this signature in database

View file

@ -2,8 +2,7 @@
if [ "$CF_PAGES_BRANCH" == "main" ]; then
# build production using base_url from the site config.toml
#zola build
zola build --base-url $CF_PAGES_URL
zola build
elif [ "$CF_PAGES_BRANCH" == "staging" ]; then
# build staging using CF_STAGING_URL env
zola build --base-url $CF_STAGING_URL