ReviewOS

also looking at this

stacks/uplink

fix(site): a missing page says 404, and the crawler files are checked on deploy

#60
Merged glennmichael123 wants to merge fix/crawler-surface into main
4 files +40 -5
public/README.mdmodified+10-0
Changes to public/README.md
@@ -12,6 +12,16 @@ Let's say you want to overwrite the default `robots.txt` file. You can do this b
1212
1313If you want to overwrite the default `favicon.ico` file, you can do this by putting a file named `favicon.ico` in this folder.
1414
15## Uplink's crawler-facing files
16
17`robots.txt` and `sitemap.xml` are served from here rather than generated by a
18route, so they are the intended home and there is nothing to keep them in sync
19with. **Adding a public page means adding its URL to `sitemap.xml` by hand.**
20
21The deploy workflow checks all three of `/404`, `/sitemap.xml` and
22`/robots.txt` against the live site after every deploy, because a CDN in front
23of the app can serve its own managed `robots.txt` and quietly replace this one.
24
1525## Security
1626
1727If you want to make sure that a file is not publicly accessible, you can put it in the `storage/private` folder. This folder is not accessible by the web server.