From 4ec8fd26f819751446acfa244babeeaf9959e628 Mon Sep 17 00:00:00 2001 From: Christian Visintin Date: Sun, 7 Jun 2026 22:28:06 +0200 Subject: [PATCH] feat(site): robots, sitemap reference, vercel redirects + cache headers --- site/public/robots.txt | 4 ++++ site/vercel.json | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 site/public/robots.txt create mode 100644 site/vercel.json diff --git a/site/public/robots.txt b/site/public/robots.txt new file mode 100644 index 0000000..c6c023d --- /dev/null +++ b/site/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://termscp.rs/sitemap-index.xml diff --git a/site/vercel.json b/site/vercel.json new file mode 100644 index 0000000..04d0fc3 --- /dev/null +++ b/site/vercel.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "redirects": [ + { "source": "/index.html", "destination": "/", "permanent": true }, + { "source": "/get-started.html", "destination": "/install", "permanent": true }, + { "source": "/get-started", "destination": "/install", "permanent": true }, + { "source": "/updates.html", "destination": "/install", "permanent": true }, + { "source": "/user-manual.html", "destination": "https://docs.termscp.rs", "permanent": true }, + { "source": "/user-manual", "destination": "https://docs.termscp.rs", "permanent": true }, + { "source": "/changelog.html", "destination": "https://github.com/veeso/termscp/blob/main/CHANGELOG.md", "permanent": true } + ], + "headers": [ + { + "source": "/fonts/(.*)", + "headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }] + }, + { + "source": "/install.sh", + "headers": [{ "key": "Content-Type", "value": "text/x-shellscript; charset=utf-8" }] + } + ] +}