From 8825d5a61edc641756b7f0b6570de866cea31ba1 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Fri, 4 Aug 2017 16:35:21 -0700 Subject: [PATCH] fix noindex for vnext-staging (#4640) * include _headers * revert vnext-staging context * add proto _headers file --- netlify.toml | 3 --- netlify_noindex_headers.txt | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 netlify_noindex_headers.txt diff --git a/netlify.toml b/netlify.toml index e92a6153002c3..bac7e0b5abe4c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,6 +4,3 @@ [context.deploy-preview] command = "make build-preview" - -[context.vnext-staging] - command = "make build && cp netlify_noindex_headers.txt _site/_headers" diff --git a/netlify_noindex_headers.txt b/netlify_noindex_headers.txt new file mode 100644 index 0000000000000..c45a1be4250c0 --- /dev/null +++ b/netlify_noindex_headers.txt @@ -0,0 +1,3 @@ +# Prevent bots from indexing site +/* + X-Robots-Tag: noindex