Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
chore(seo): block search indexing on the app subdomain (#3)
Gökhan Geyikcd17f8009d68
diff --git a/web/src/app/layout.tsx b/web/src/app/layout.tsxindex 60604dea5..ef6926d02 100644--- a/web/src/app/layout.tsx+++ b/web/src/app/layout.tsx@@ -30,6 +30,16 @@ export const metadata: Metadata = {},description:"Monitor, analyze, and optimize your brand's visibility in AI-powered search engines.",+ // The product app at app.ansvisor.com should not appear in search results;+ // ansvisor.com (the Webflow marketing site) is the indexable surface.+ robots: {+ index: false,+ follow: false,+ googleBot: {+ index: false,+ follow: false,+ },+ },};export default function RootLayout({diff --git a/web/src/app/robots.ts b/web/src/app/robots.tsnew file mode 100644index 000000000..fc61fbb18--- /dev/null+++ b/web/src/app/robots.ts@@ -0,0 +1,19 @@+import type { MetadataRoute } from 'next';++/**+ * Block search engines from indexing the application subdomain.+ *+ * The marketing site at `ansvisor.com` is hosted separately (Webflow) and+ * is the surface that should be indexed. The Next.js app at `app.ansvisor.com`+ * is purely the authenticated product UI and provides no value in search.+ */+export default function robots(): MetadataRoute.Robots {+ return {+ rules: [+ {+ userAgent: '*',+ disallow: '/',+ },+ ],+ };+}diff --git a/web/vercel.json b/web/vercel.jsonindex c46b2a574..9130a4790 100644--- a/web/vercel.json+++ b/web/vercel.json@@ -4,5 +4,16 @@"path": "/api/cron/daily-tracking","schedule": "45 15 * * *"}+ ],+ "headers": [+ {+ "source": "/(.*)",+ "headers": [+ {+ "key": "X-Robots-Tag",+ "value": "noindex, nofollow, noarchive, nosnippet"+ }+ ]+ }]}