Skip to content

Commit 1b07732

Browse files
committed
Fix 404 on SPA routes by adding location / with try_files
1 parent 4382e36 commit 1b07732

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docker/default.conf.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ server {
4141
try_files $uri $uri/ index.html =404;
4242
}
4343

44+
location / {
45+
try_files $uri $uri/ /index.html;
46+
}
47+
4448
# these all include hashes, so we can cache them for a long time.
4549
location ~* \.(?:svg|ttf|js|css|wasm)$ {
4650
expires 1y;

0 commit comments

Comments
 (0)