pmndrs / uikit

🎨 user interfaces for react-three-fiber
https://pmndrs.github.io/uikit/docs/
Other
2.58k stars 133 forks source link

Examples and Fonts not found #102

Open kwaa opened 1 month ago

kwaa commented 1 month ago

It looks like https://pmndrs.github.io/uikit will automatically redirect to https://pmnd.rs/uikit/ and then 404 not found.

Affected URLs:

image

kwaa commented 1 month ago

The fonts are accessible (but having CORS issues with local development) and the example is still 404.

image

bbohlender commented 1 month ago

We had a short DNS issue, but should be fixed now

kwaa commented 1 month ago

We had a short DNS issue, but should be fixed now

It looks like the CORS issue has reappeared (the example doesn't load the fonts correctly either), and it might be better to provide the fonts as an npm package. I can open a feature request issue if needed.

image

bbohlender commented 1 month ago

yes, the team reverted the DNS changes again. But for the future this repo should switch to the default fonts beeing distributed as inlined jsons and base64 encoded textures. If you know how to set those things up (the cicd pipeline needs to run the font conversion and inline the json and the base64 encoded MSDF texture into the uikit package), I'd love to help with a PR :)

muhirai commented 1 month ago

So meanwhile how to solve this problem in development? (it seems to work well in Vercel deployment but not in localhost)

bbohlender commented 1 month ago

The DNS error is fixed right now and should not appear in the near future, so that everybody can take their time to migrate to 0.4.0 (comming out soon), where this error cannot happen. However, since DNS entries are cached on the OS level, you might need to manually clear the DNS cache or wait a little bit until the DNS entry is reloaded for you.