about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-09-02 18:27:11 +0200
committerAlan Pearce2023-09-02 18:27:11 +0200
commita1bcb91851d84d3796a8a281af8d01ce0a79a3fc (patch)
tree39e7f1ebfef7e7d2eb98d3c7835aa28dd74e9d2e
parentd69e95a01c254ed616b0c4e5a1f8bfdcec7b00fe (diff)
downloadzola-bearblog-a1bcb91851d84d3796a8a281af8d01ce0a79a3fc.tar.lz
zola-bearblog-a1bcb91851d84d3796a8a281af8d01ce0a79a3fc.tar.zst
zola-bearblog-a1bcb91851d84d3796a8a281af8d01ce0a79a3fc.zip
Add netlify.toml
-rw-r--r--netlify.toml15
1 files changed, 15 insertions, 0 deletions
diff --git a/netlify.toml b/netlify.toml
new file mode 100644
index 0000000..112bf78
--- /dev/null
+++ b/netlify.toml
@@ -0,0 +1,15 @@
+[build]
+publish = "public"
+command = "zola build"
+
+[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"