We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0d5574 + e622794 commit 9e40e18Copy full SHA for 9e40e18
middleware.js
@@ -19,6 +19,9 @@ export default async function middleware(request) {
19
20
return new Response(previewHTML, {
21
status: 200,
22
- headers: { 'content-type': 'text/html' },
+ headers: {
23
+ 'content-type': 'text/html',
24
+ 'x-robots-tag': 'noindex'
25
+ },
26
});
27
}
vercel.json
@@ -1,9 +1,17 @@
1
{
2
+ "headers": [
3
+ {
4
+ "source": "/(.*)",
5
6
+ { "key": "x-robots-tag", "value": "noindex" }
7
+ ]
8
+ }
9
+ ],
10
"redirects": [
11
{ "source": "/", "destination": "/preview/" }
12
],
13
"rewrites": [
14
{ "source": "/preview/CHANGELOG.md", "destination": "/CHANGELOG.md" },
15
{ "source": "/preview/:path*", "destination": "/docs/:path*" }
16
]
-}
17
+}
0 commit comments