Docs: Only use production environment var on production

This commit is contained in:
Simon Binder 2019-10-27 16:59:08 +01:00
parent ceed461a06
commit 0667191f14
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 5 additions and 2 deletions

View File

@ -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
force = true
[context.production]
environment = { HUGO_ENV="production" }