Commit 9aad1d3
feat: Make robots.txt environment-aware using DEPLOYMENT_HOST
- Add generate-robots-txt.js script that uses DEPLOYMENT_HOST env var
- Fallback to atmos.tools (production) when DEPLOYMENT_HOST is not set
- Add robots.txt to static/.gitignore since it's now generated at build time
- Run generation in prebuild step alongside themes.json copy
This ensures non-production deployments (staging, preview) have the correct
sitemap URL in robots.txt, matching the same pattern used in algolia/reindex.sh.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent f6d182b commit 9aad1d3
File tree
3 files changed
+28
-1
lines changed- website
- scripts
- static
3 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
0 commit comments