change the root app url from / to specific path #2829
-
Hey I'm trying to map my yew project to a specific path, ie : https://my.server.net/MYPATH/ because I configured my apache server to redirect any https://my.server.net/MYPATH/* to http://107.0.0.1:8080/* I could manually modify the generated index.html to get the wasm and js files to the correct location and redirect wss correctly. Nevertheless, I'm pretty convinced this is not a good idea nor practice. How can I configure my project to correctly generate the index.html ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is done in |
Beta Was this translation helpful? Give feedback.
This is done in
trunk
via setting the correct config value: https://github.com/thedodd/trunk/blob/master/Trunk.toml#L10-L11 and setting the path in the output index.html as documented in: https://trunkrs.dev/assets/#directives