chore: robots.txt
All checks were successful
Node.js CI / Lint and Test (push) Successful in 46s

This commit is contained in:
2025-08-11 20:10:09 -07:00
parent fc9ca35a55
commit cc07a86807
2 changed files with 8 additions and 0 deletions

View File

@@ -9,4 +9,6 @@ export const reservedSlugs = [
"unsub",
"overlimit",
"404",
"favicon.ico",
"robots.txt",
];

View File

@@ -56,6 +56,12 @@ export const instantiateServer = (lynira: Lynira): void => {
response.redirect("https://cdn.nhcarrigan.com/favicon/favicon.ico");
});
server.get("/robots.txt", (_request, response) => {
response.header("Content-Type", "text/plain");
// Allow everything
response.send("User-agent: *\nDisallow:");
});
// WILDCARD: anything static must come before this route.
// eslint-disable-next-line max-statements -- Big function due to multiple routes.
server.get("*", async(request, response) => {