diff --git a/nginx.conf b/nginx.conf index 52a60e7..3fba025 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,10 +1,11 @@ -server { +server { listen 80; location / { root /usr/share/nginx/html; index index.html index.htm; - # Redirect all unknown paths to index.html to allow React Router to handle the routing + + # Handle React Router navigation try_files $uri $uri/ /index.html; } } \ No newline at end of file