Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Deploy missing relative paths #1

Closed
thelazyone opened this issue Sep 28, 2023 · 1 comment
Closed

Automatic Deploy missing relative paths #1

thelazyone opened this issue Sep 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@thelazyone
Copy link
Owner

If the app is deployed with trunk build --release the resulting html lacks the "." before the .js and .wasm paths.

I have to manually change

<link rel="preload" href="/fsd_builder-aa2496fcb7b728b7_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="/fsd_builder-aa2496fcb7b728b7.js"></head>
<body>  
    <div id="app"></div>
    <script src=".static/js/download_file.js"></script>

<script type="module">import init from '/fsd_builder-aa2496fcb7b728b7.js';init('/fsd_builder-aa2496fcb7b728b7_bg.wasm');</script></body></html>

into

<link rel="preload" href="./fsd_builder-aa2496fcb7b728b7_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="./fsd_builder-aa2496fcb7b728b7.js"></head>
<body>  
    <div id="app"></div>
    <script src=".static/js/download_file.js"></script>

<script type="module">import init from './fsd_builder-aa2496fcb7b728b7.js';init('./fsd_builder-aa2496fcb7b728b7_bg.wasm');</script></body></html>

It's a minor issue, but i'm sure there's a very simple solution, I'm just not skilled in Yew enough.

@thelazyone thelazyone added the bug Something isn't working label Sep 28, 2023
@thelazyone
Copy link
Owner Author

Fixed in b98ba05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant