<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  # Always serve static files if they exist
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # ? Route API calls to Laravel backend
RewriteCond %{REQUEST_URI} ^/api
RewriteRule ^api/(.*)$ backend-customerLogin/public/index.php/api$1 [L,QSA] 

  # Rewrite everything else to Next.js
  RewriteRule ^ index.html [L]
</IfModule>
