<IfModule mod_rewrite.c>
  RewriteEngine On
  # Passenger intercepts Node.js requests natively. 
  # We just need to route SPA paths (like /inventory, /sales) to the Node app,
  # but Fastify's setNotFoundHandler already handles SPA fallback perfectly!
  # So we don't strictly need any rewrites here for Node apps unless forcing HTTPS.
  
  # Force HTTPS (optional but recommended)
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
