diff --git a/netlify.toml b/netlify.toml index 9e8915a..ddc19cf 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,13 +5,13 @@ [build] base = "website" publish = "website/public" -command = "make build" +command = "make netlify-production-build" [build.environment] HUGO_VERSION = "0.46" [context.deploy-preview] -command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL" +command = "make netlify-staging-build" [context.branch-deploy] -command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL" +command = "hugo netlify-staging-build" diff --git a/website/Makefile b/website/Makefile index a106d0c..7c636eb 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,8 +1,11 @@ get-sass: yarn -build: get-sass +netlify-production-build: get-sass hugo +netlify-staging-build: get-sass + hugo -b $(DEPLOY_PRIME_URL) + dev: hugo server --disableFastRender