summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThe Pangolier <[email protected]>2025-08-03 03:02:24 -0400
committerGitHub <[email protected]>2025-08-03 03:02:24 -0400
commit9255c507d65c3ffb55849eaf741b8f870017ed3d (patch)
tree9428cdf3b32a97de9eacee62a83c40b2f383a267
parent2711047166be77e1d0c08781498f9fd84e1069bf (diff)
downloadopencode-9255c507d65c3ffb55849eaf741b8f870017ed3d.tar.gz
opencode-9255c507d65c3ffb55849eaf741b8f870017ed3d.zip
Share link hotfix (#1513)
-rw-r--r--packages/web/public/robots.txt5
-rw-r--r--packages/web/src/pages/s/[id].astro2
2 files changed, 6 insertions, 1 deletions
diff --git a/packages/web/public/robots.txt b/packages/web/public/robots.txt
new file mode 100644
index 000000000..f88eb1790
--- /dev/null
+++ b/packages/web/public/robots.txt
@@ -0,0 +1,5 @@
+User-agent: *
+Allow: /
+
+# Disallow shared content pages
+Disallow: /s/ \ No newline at end of file
diff --git a/packages/web/src/pages/s/[id].astro b/packages/web/src/pages/s/[id].astro
index 0e0170b66..430d50cfa 100644
--- a/packages/web/src/pages/s/[id].astro
+++ b/packages/web/src/pages/s/[id].astro
@@ -71,7 +71,7 @@ const ogImage = `${config.socialCard}/opencode-share/${encodedTitle}.png?model=$
tag: "meta",
attrs: {
name: "robots",
- content: "noindex",
+ content: "noindex, nofollow, noarchive, nosnippet",
}
},
{