Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
772 B
TypeScript
39 lines
772 B
TypeScript
import { MetadataRoute } from "next"
|
|
import { businessConfig } from "@/lib/seo-config"
|
|
|
|
// Required for static export
|
|
export const dynamic = 'force-static'
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: "*",
|
|
allow: "/",
|
|
disallow: [
|
|
"/api/",
|
|
"/admin/",
|
|
"/_next/",
|
|
"/test-page/",
|
|
"/manuals/dashboard/",
|
|
],
|
|
},
|
|
{
|
|
userAgent: "Googlebot",
|
|
allow: "/",
|
|
disallow: [
|
|
"/api/",
|
|
"/admin/",
|
|
"/_next/",
|
|
"/test-page/",
|
|
"/manuals/dashboard/",
|
|
],
|
|
},
|
|
],
|
|
sitemap: `${businessConfig.website}/sitemap.xml`,
|
|
host: businessConfig.website,
|
|
}
|
|
}
|
|
|
|
|
|
|