From 9e83fd680978ddee99b04536d40fd76187f901fb Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 26 Jun 2018 14:53:48 +0200 Subject: [PATCH] Fixed netlify production URL. --- netlify.toml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 50759104f6f..bcf633baa35 100644 --- a/netlify.toml +++ b/netlify.toml @@ -6,9 +6,29 @@ git lfs fetch yarn --ignore-engines --ignore-optional --non-interactive && node_modules/.bin/webpack -p --mode=production && - hugo -b $DEPLOY_PRIME_URL""" + hugo""" [context.production.environment] HUGO_VERSION = "0.42.1" + HUGO_ENV = "production" + HUGO_ENABLEGITINFO = "true" + +[context.deploy-preview] + command = """ + git lfs fetch + yarn --ignore-engines --ignore-optional --non-interactive && + node_modules/.bin/webpack -p --mode=production && + hugo -b $DEPLOY_PRIME_URL""" + [context.deploy-preview.environment] HUGO_VERSION = "0.42.1" + +[context.branch-deploy] + command = """ + git lfs fetch + yarn --ignore-engines --ignore-optional --non-interactive && + node_modules/.bin/webpack -p --mode=production && + hugo -b $DEPLOY_PRIME_URL""" + +[context.branch-deploy.environment] + HUGO_VERSION = "0.42.1" -- GitLab