import re # Read the original parts file with open('app/services/parts/page.tsx', 'r') as f: content = f.read() # Add ArrowRight import if missing if 'ArrowRight' not in content: content = content.replace('import Link from \'next/link\';', 'import Link from \'next/link\';\nimport { ArrowRight } from \'lucide-react\';') # Create Related Services section similar to repairs page related_services = ''' {/* Related Services Section */}

Our Complete Service Network

Rocky Mountain Vending provides comprehensive vending solutions across Utah

Vending Machine Parts

Quality replacement parts and components for all major vending machine brands

View Parts Services

Service Areas

Serving 20+ cities across Utah with free delivery and installation

View Service Areas

Moving Services

Professional vending machine relocation and installation services

View Moving Services
''' # Insert before a typical section - looking for Services section or similar services_pattern = r'' if re.search(services_pattern, content): content = re.sub(services_pattern, related_services + '\n\n
', content, flags=re.DOTALL) else: # Fallback: add before any py-20 section py20_pattern = r'' if re.search(py20_pattern, content): content = re.sub(py20_pattern, related_services + '\n\n
', content, flags=re.DOTALL) # Write the modified content with open('app/services/parts/page.tsx', 'w') as f: f.write(content) print("✅ Successfully added internal links to Parts page!")