Rocky_Mountain_Vending/lib/products/config.ts
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

22 lines
477 B
TypeScript

/**
* Product filtering configuration
* Products matching these patterns will be excluded from the website
*/
export const EXCLUDED_PRODUCT_PATTERNS = [
'Service Fee',
'Service Rate',
'Hourly Service',
]
/**
* Check if a product name should be excluded
*/
export function shouldExcludeProduct(name: string): boolean {
const lowerName = name.toLowerCase()
return EXCLUDED_PRODUCT_PATTERNS.some((pattern) =>
lowerName.includes(pattern.toLowerCase())
)
}