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>
22 lines
477 B
TypeScript
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())
|
|
)
|
|
}
|
|
|
|
|