In release build I can refresh #716
-
Hi I have a rust leptos site that when using development trunk serve seems to work fine. When doing a trunk build --release My apache is set up just to serve dist directory ie Alias /dist /opt/redwood/dist What could be the issue here. I am probably doing something silly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's a common problem of "single page applications". The URL in the browser's location bar is only changed visually. But it never requests that page. Until to trigger some kind of a reload. Trunk know about this and by default (expect when using the With
I have no idea about Apache, sorry. |
Beta Was this translation helpful? Give feedback.
That's a common problem of "single page applications". The URL in the browser's location bar is only changed visually. But it never requests that page. Until to trigger some kind of a reload.
Trunk know about this and by default (expect when using the
--no-spa
flag) returns the main resources instead of a 404, which does the trick.With
nginx
you can do the same using:I have no idea about Apache, sorry.