Skip to main content

Troubleshooting

Common issues and solutions for the Infowebplus application.

Build Issues​

"Module not found"​

Solution: Run npm install to install dependencies.

TypeScript Errors​

Solution: Run npm run typecheck to see detailed errors.

Runtime Issues​

Content Not Loading​

  1. Check Sanity configuration:

    • Verify NEXT_PUBLIC_SANITY_PROJECT_ID is set
    • Verify NEXT_PUBLIC_SANITY_DATASET is correct
    • Check Sanity API token
  2. Check cache:

    • Clear cache: POST /api/cache/clear?all=true
    • Check cache status: GET /api/cache/clear

Cache Not Working​

  1. Check Redis connection:

    redis-cli ping
    # Should return: PONG
  2. Check environment variables:

    • ENABLE_REDIS should be true for Redis
    • REDIS_URL should be set correctly
  3. Check logs for errors

Quote Calculator Not Working​

  1. Verify Sanity quote settings are configured
  2. Check browser console for errors
  3. Verify API endpoints are accessible
  4. Check HubSpot configuration (if using)

Deployment Issues​

Vercel Deployment Fails​

  1. Check build logs in Vercel dashboard
  2. Verify all environment variables are set
  3. Check Node.js version compatibility

Cloudflare Pages Deployment Fails​

  1. Check build logs in Cloudflare dashboard
  2. Verify build command is correct
  3. Check Node.js version (requires 20+)

Performance Issues​

Slow Page Loads​

  1. Check cache hit rates
  2. Verify Redis is working (if enabled)
  3. Check Sanity API response times
  4. Review Next.js build output

High API Usage​

  1. Enable caching if not already enabled
  2. Increase cache TTL for static content
  3. Review API call patterns

Getting Help​