<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Skip actual files
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # Proxy to Node.js app
    RewriteRule ^(.*)$ http://localhost:3000/$1 [P,QSA]
</IfModule>

<IfModule mod_proxy.c>
    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPassReverse / http://localhost:3000/
</IfModule>
