widgetti / solara

A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps
https://solara.dev
MIT License
1.62k stars 105 forks source link

fix: get correct mime types on windows for cdn proxy. #37

Closed maartenbreddels closed 1 year ago

maartenbreddels commented 1 year ago

Because on windows we cached to a file ending in /path.css/__main The mime type was not guessed correctly.

Fixes https://github.com/widgetti/solara/issues/36

railway-app[bot] commented 1 year ago

This PR is being deployed to Railway 🚅

web: ◻️ REMOVED

Jhsmit commented 1 year ago

Should this fix the issue now?

I have a solara dev install, I checkout this branch and rerun pip install ".[server,develop,documentation]" to build

This then gives: image

maartenbreddels commented 1 year ago

It should fix it indeed. Let me check on windows manually again.

maartenbreddels commented 1 year ago

Ok, mystery solved. You have to nuke your cdn cache directory, e.g. sth like this:

$ rm -rf /c/ProgramData/Miniconda3/envs/solara39/share/solara/cdn/
Jhsmit commented 1 year ago

image

🎉 🥳

maartenbreddels commented 1 year ago

Great :) if you pull master, you won't have the blue bar by default :)