diff --git a/nginx/default.conf b/nginx/default.conf index eb03d21..6155d6e 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -15,8 +15,6 @@ server { # react app specific location / { - if (!-e $request_filename){ - rewrite ^(.*)$ /index.html break; - } + try_files $uri /index.html; } } \ No newline at end of file