Files
orangecat/scripts/dev/fix-cache-now.sh
Your Name 1b2a2371e9 refactor: Complete codebase improvements per engineering principles
- Fix currency defaults (SATS → CHF) across forms, configs, and API routes
- Remove @ts-nocheck from socialService.ts and improve type safety
- Replace console.log statements with proper logger utility in production code
- Additional type safety improvements and code quality enhancements
- Documentation updates for improved maintainability

All changes follow DRY, SSOT, and separation of concerns principles.
2026-01-04 12:25:26 +01:00

81 lines
645 B
Bash
Executable File

#!/bin/bash
# Quick fix for cache issues - run this when changes aren't showing
echo "🔧 Quick Cache Fix"
echo ""
# Stop dev server if running
echo "Stopping dev server..."
pkill -f "next dev" 2>/dev/null || true
sleep 1
# Clear .next
echo "Clearing .next cache..."
rm -rf .next
echo ""
echo "✅ Done! Now:"
echo " 1. In browser: Open DevTools (F12) → Application → Service Workers → Unregister all"
echo " 2. In browser: Application → Cache Storage → Delete all"
echo " 3. Hard refresh: Ctrl+Shift+R (or Cmd+Shift+R on Mac)"
echo " 4. Run: npm run dev"
echo ""