-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
38 lines (32 loc) · 1.01 KB
/
netlify.toml
File metadata and controls
38 lines (32 loc) · 1.01 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
37
38
[build]
command = "npm run build"
publish = "dist"
[build.environment]
NODE_VERSION = "18"
# LLM/AI specific redirects with user-agent detection
[[redirects]]
from = "/"
to = "/claude-code-guide.md"
status = 200
condition = "User-Agent=*GPTBot* OR User-Agent=*ChatGPT* OR User-Agent=*Claude* OR User-Agent=*anthropic* OR User-Agent=*OpenAI* OR User-Agent=*CCBot*"
headers = { Content-Type = "text/markdown; charset=utf-8", X-AI-Content = "true", X-LLM-Optimized = "true" }
# Alternative access paths for LLMs
[[redirects]]
from = "/api/content"
to = "/claude-code-guide.md"
status = 200
headers = { Content-Type = "text/markdown; charset=utf-8", X-AI-Content = "true" }
[[redirects]]
from = "/markdown"
to = "/claude-code-guide.md"
status = 200
headers = { Content-Type = "text/markdown; charset=utf-8" }
[[redirects]]
from = "/guide.md"
to = "/claude-code-guide.md"
status = 200
# SPA fallback for React Router (must be last)
[[redirects]]
from = "/*"
to = "/index.html"
status = 200