-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
36 lines (32 loc) · 1.12 KB
/
Copy pathnetlify.toml
File metadata and controls
36 lines (32 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[build]
command = "yarn build"
publish = "build"
# Serve raw markdown companion files with the correct MIME type so AI
# crawlers and the Ask-AI button's deep links get plain text rather than
# HTML or a download prompt.
[[headers]]
for = "/*.md"
[headers.values]
Content-Type = "text/markdown; charset=utf-8"
Cache-Control = "public, max-age=300, must-revalidate"
X-Robots-Tag = "index, follow"
# Same treatment for nested .md files (e.g. /docs/intro.md, /ai/.../foo.md).
[[headers]]
for = "/**/*.md"
[headers.values]
Content-Type = "text/markdown; charset=utf-8"
Cache-Control = "public, max-age=300, must-revalidate"
X-Robots-Tag = "index, follow"
# llms.txt + llms-full.txt: plain text, edge-cached, robot-friendly.
[[headers]]
for = "/llms.txt"
[headers.values]
Content-Type = "text/plain; charset=utf-8"
Cache-Control = "public, max-age=300, must-revalidate"
X-Robots-Tag = "index, follow"
[[headers]]
for = "/llms-full.txt"
[headers.values]
Content-Type = "text/plain; charset=utf-8"
Cache-Control = "public, max-age=300, must-revalidate"
X-Robots-Tag = "index, follow"