-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I will convert this to a discussion since WebSocket is part of the backend server and I do not think Yew documentation should cover backend deployment. |
Beta Was this translation helpful? Give feedback.
-
Are you trying to run Yew in production? If you are trying to run Yew in production, then you should not use trunk command. If you are trying to develop a Yew application, then you should use |
Beta Was this translation helpful? Give feedback.
-
Hello, I got it working, and yes in production, is why I wanted to have a good nginx config example, because I did not wanted to run trunk but to have nginx run it and now is working, and the only reverse proxy /api I have is to talk with my backend (not related to yew) what is important is that nginx is the one serving the wasm to the client browser with out having to run yew on its own dev http server.
|
Beta Was this translation helpful? Give feedback.
Hello, I got it working, and yes in production, is why I wanted to have a good nginx config example, because I did not wanted to run trunk but to have nginx run it and now is working, and the only reverse proxy /api I have is to talk with my backend (not related to yew) what is important is that nginx is the one serving the wasm to the client browser with out having to run yew on its own dev http server.
here is the example we can use for others that had my issue so they do not spend like me 5 days hearing people telling me that I should use nginx as a reverse proxy for yew(wrong because yew runs on the browser)