Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Robots txt disallow changes

Richie McIlroy21f7434d5c02
diff --git a/apps/web/app/robots.ts b/apps/web/app/robots.ts
index f9aa2dd50..4b2775f9a 100644
--- a/apps/web/app/robots.ts
+++ b/apps/web/app/robots.ts
@@ -2,29 +2,32 @@ import { seoPages } from "@/lib/seo-pages";
import { MetadataRoute } from "next";
export const dynamic = 'force-dynamic';
+export const revalidate = 0;
export default function robots(): MetadataRoute.Robots {
- // Get all SEO page slugs
const seoPageSlugs = Object.keys(seoPages);
return {
- rules: {
- userAgent: '*',
- allow: [
- '/',
- '/updates/',
- // Dynamically add all SEO pages
- ...seoPageSlugs.map(slug => `/${slug}`),
- ],
- disallow: [
- '/dashboard',
- '/s/',
- '/login',
- '/invite',
- '/onboarding',
- '/record',
- ],
- },
+ rules: [
+ {
+ userAgent: '*',
+ allow: [
+ '/',
+ '/updates/',
+ // Dynamically add all SEO pages
+ ...seoPageSlugs.map(slug => `/${slug}`),
+ ],
+ // Be more specific about what we're disallowing under /s/
+ disallow: [
+ '/dashboard',
+ '/s/*', // This will match /s/ and anything under it
+ '/login',
+ '/invite',
+ '/onboarding',
+ '/record',
+ ],
+ },
+ ],
sitemap: 'https://cap.so/sitemap.xml',
};
}
\ No newline at end of file