diff options
author | Valentin Popov <valentin@popov.link> | 2023-05-05 15:47:37 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2023-05-05 15:47:37 +0300 |
commit | 014232855ce7a022b568246a484edb89b935d8f8 (patch) | |
tree | 3dec71d4b0b7c8c5a6cc9fcb1e889dfd8c1e5f89 | |
parent | 93996fd67ae44e6a017dfe5247ed06cb91e711ee (diff) | |
download | popov.link-014232855ce7a022b568246a484edb89b935d8f8.tar.xz popov.link-014232855ce7a022b568246a484edb89b935d8f8.zip |
Updated the build Netlify command
Signed-off-by: Valentin Popov <valentin@popov.link>
-rw-r--r-- | netlify.toml | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/netlify.toml b/netlify.toml index 846902f..fea4417 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,16 +3,8 @@ # to have a `base` variable but you do need the `publish` and `command` variables. base = "" publish = "public" -command = "zola build" +command = "zola build --base-url \"$DEPLOY_PRIME_URL\"" [build.environment] # Set the version name that you want to use and Netlify will automatically use it. ZOLA_VERSION = "0.17.2" - -# The magic for deploying previews of branches. -# We need to override the base url with whatever url Netlify assigns to our -# preview site. We do this using the Netlify environment variable -# `$DEPLOY_PRIME_URL`. - -[context.deploy-preview] -command = "zola build --base-url $DEPLOY_PRIME_URL" |