It looks like the WASM bundles generated by Kotlin...
# compose-web
c
It looks like the WASM bundles generated by Kotlin assumes the site is hosted at the domain root. Is there any way to configure it so that the generated paths are relative to a sub-path of that domain? For example, I want to host the backend API service at https://example.com/app and the Compose site at https://example.com/app, but loading the /app/index.html tries to fetch the bundle directly from /main.bundle.js
c
can you share the
index.html
- you just need to use relative urls for the
<script src>
c
Thanks for the pointer, adding
<base href="/app/">
to the
<head>
worked. Also, it needed the trailing
/
to resolve the relative URLs correctly
👍🏾 1
👍 2