server { listen 80; location / { root /usr/share/nginx/html; index index.html index.htm; try_files $uri $uri/ /index.html; } # Optional: Proxy API requests if using same domain (not needed for this specific setup but good to have) # location /api { # proxy_pass http://backend:3000; # } }