From 0667191f1455a75e36a16faab9990e01aea89ac2 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Sun, 27 Oct 2019 16:59:08 +0100 Subject: [PATCH] Docs: Only use production environment var on production --- netlify.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index 8873b8ac..85e0bd62 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,10 +3,13 @@ [build] base = "docs" publish = "docs/public" - command = 'git submodule update --init --recursive && HUGO_ENV="production" hugo' + command = 'git submodule update --init --recursive && hugo' [[redirects]] from = "https://moor.netlify.com/*" to = "https://moor.simonbinder.eu/:splat" status = 301 - force = true \ No newline at end of file + force = true + +[context.production] + environment = { HUGO_ENV="production" } \ No newline at end of file