fix(ui): Serve react index file for all page urls (#642)
This commit is contained in:
parent
819aefb86e
commit
772261fef4
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,9 @@ server {
|
|||
listen [::]:8080 default_server;
|
||||
root /var/www/openreplay;
|
||||
index index.html;
|
||||
rewrite ^((?!.(js|css|png|svg|jpg|woff|woff2)).)*$ /index.html break;
|
||||
proxy_intercept_errors on; # see frontend://nginx.org/en/docs/frontend/ngx_frontend_proxy_module.html#proxy_intercept_errors
|
||||
error_page 404 =200 /index.html;
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue