Skip to content

Commit 426c4e5

Browse files
committed
🐛 [#169] Let react-router handle routes of single page app
In the docs of React Router: https://reactrouter.com/en/6.24.1/routers/picking-a-router#web-projects > If you're hosting your app on a static file server, you'll need to configure it to send all requests to your index.html to avoid getting 404s.
1 parent 8ebfe02 commit 426c4e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-nginx-default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ server {
77
proxy_set_header Host $http_host;
88
}
99

10-
location = / {
10+
location / {
1111
try_files $uri $uri/ /static/frontend/index.html;
1212
}
1313
}

0 commit comments

Comments
 (0)