aboutsummaryrefslogtreecommitdiff
path: root/netlify.toml
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2022-11-05 13:10:22 +0300
committerValentin Popov <valentin@popov.link>2022-11-05 13:10:22 +0300
commitf0ffa2f09d14f41cfcaced2d92d4b6bd62386f2f (patch)
tree581a3713975d3f8e53ed8c3322843ca82de355d2 /netlify.toml
parent6c6b8e28ddfe0324d678734d0ce9c3302d0ae56b (diff)
downloadpopov.link-f0ffa2f09d14f41cfcaced2d92d4b6bd62386f2f.tar.xz
popov.link-f0ffa2f09d14f41cfcaced2d92d4b6bd62386f2f.zip
Added Netlify config build and deploy
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml18
1 files changed, 18 insertions, 0 deletions
diff --git a/netlify.toml b/netlify.toml
new file mode 100644
index 0000000..5c90a87
--- /dev/null
+++ b/netlify.toml
@@ -0,0 +1,18 @@
+[build]
+# This assumes that the Zola site is in a docs folder. If it isn't, you don't need
+# to have a `base` variable but you do need the `publish` and `command` variables.
+base = "docs"
+publish = "docs/public"
+command = "zola build"
+
+[build.environment]
+# Set the version name that you want to use and Netlify will automatically use it.
+ZOLA_VERSION = "0.16.1"
+
+# 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"