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

CDN's for clippy are down #319

Closed
Mrpanquecas opened this issue Feb 6, 2022 · 7 comments · Fixed by #321
Closed

CDN's for clippy are down #319

Mrpanquecas opened this issue Feb 6, 2022 · 7 comments · Fixed by #321

Comments

@Mrpanquecas
Copy link
Contributor

Can't reach the CDN's for clippy over at

https://gitcdn.xyz/repo/pi0/clippyjs/master/assets/agents/Clippy/agent.js

and

https://gitcdn.xyz/repo/pi0/clippyjs/master/assets/agents/Clippy/sounds-mp3.js

@ggdaltoso
Copy link
Member

🤔

It is probably related to this commit which comes as solution for #218

So, it looks like gitcdn isn't the best provider. Although it is faster, sometimes it comes down (don't know why).
We can rollback this changes but need to check window conditionally before setting this new env variable.
Easy fix, I guess.

I'd love to have your contribution on this, @Mrpanquecas. What do you think?

@Mrpanquecas
Copy link
Contributor Author

Mrpanquecas commented Feb 7, 2022

I can give it a try tonight, more than eager to help.

@Mrpanquecas
Copy link
Contributor Author

Do I need specific permissions to contribute? @ggdaltoso

@ggdaltoso
Copy link
Member

ggdaltoso commented Feb 8, 2022

You shouldn't!

Just fork the project and make sure to follow our contribution guidelines

@Mrpanquecas
Copy link
Contributor Author

Mrpanquecas commented Feb 13, 2022

I created this pr but I don't really know how to test clippy locally on story book :)

I thought a little bit about this issue and I'm not sure conditionally checking for the window will solve this problem since the code running on server the window property will always be undefined and as a consequence we will never be able to use the S3 CDN. Does it makes sense?

@ggdaltoso
Copy link
Member

Yes, it does!

As soon as this code runs in the server, it would get into the falsy condition. When the code reaches the browser, the window will be available and the CDN will be changed.

Clippy will work only on the client side and not in the server side so, your solution will work as expected (I hope 😂)

We might need something better to test Clippy, you're right. Maybe we can get a CRA into its package, just to run and test the Clippy. Would you like to contribute one more time?

@Mrpanquecas
Copy link
Contributor Author

Yes more than happy to contribute. I think I will need a little bit more time to figure how everything works as I am not used to contribute to this kind of packages 😅 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants