yewstack / yew

Rust / Wasm framework for creating reliable and efficient web applications
https://yew.rs
Apache License 2.0
30.9k stars 1.43k forks source link

Publicly hosted examples at examples.yew.rs are broken #3694

Closed iangrunert closed 3 months ago

iangrunert commented 4 months ago

Problem In examples/README.md it states there's publicly hosted examples at https://examples.yew.rs/<EXAMPLE> e.g. https://examples.yew.rs/todomvc or https://examples.yew.rs/async_clock/.

These publicly hosted examples no longer work - the .css, .js and .wasm files 404, so a blank page renders instead.

Steps To Reproduce Steps to reproduce the behavior:

  1. Go to https://examples.yew.rs/async_clock/
  2. See blank page

Expected behavior Async clock example renders

WorldSEnder commented 4 months ago

I'm gonna re-open this because upon double checking, some examples seem to get invalid integrity hashes (SRI) for their resources. We don't do any post-processing, but I currently do not quite understand how they are generated and can be controlled in trunk.

WorldSEnder commented 3 months ago

Workaround is to disable sri for now (part of #3713). I'm thinking about including more logging to debug this in example building workflow, since the locally deployed version (with firebase emulators:start) works fine even with resource integrity included and the hashes check out.