server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; # SPA fallback — needed once client-side routing (react-router) lands. location / { try_files $uri $uri/ /index.html; } }