Add _headers file checking logic (#9879)

* Add _headers file checking logic

* Remove netlify_noindex_headers.txt file
This commit is contained in:
Luc Perkins
2018-08-21 12:51:15 -07:00
committed by k8s-ci-robot
parent 7360a0c10c
commit b6bb3a60a0
5 changed files with 35 additions and 9 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
# It is turned off for only for the production site by using [context.master] below
# DO NOT REMOVE THIS (contact @chenopis or @sig-docs-maintainers)
publish = "public"
command = "hugo --enableGitInfo && cp netlify_noindex_headers.txt public/_headers"
command = "make non-production-build"
[build.environment]
HUGO_VERSION = "0.47.1"
@@ -23,4 +23,4 @@ command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
# This context is triggered by the `master` branch and allows search indexing
# DO NOT REMOVE THIS (contact @chenopis or @sig-docs-maintainers)
publish = "public"
command = "hugo"
command = "make production-build"