Skip to content

Commit c2a617e

Browse files
authored
fix(greenhouse): ensure nginx redirects to /index.html for unknown routes (#1135)
1 parent 836189c commit c2a617e

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.changeset/heavy-actors-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudoperators/juno-app-greenhouse": patch
3+
---
4+
5+
Update nginx.conf so the client side routing works.

apps/greenhouse/docker/nginx.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ server {
2222
application/javascript mjs js;
2323
}
2424

25-
location / {
26-
index index.html index.htm;
27-
}
28-
}
25+
location / {
26+
try_files $uri $uri/ /index.html;
27+
}
28+
}

0 commit comments

Comments
 (0)