jeremyckahn / chitchatter

Secure peer-to-peer chat that is serverless, decentralized, and ephemeral
https://chitchatter.im/
GNU General Public License v2.0
1.4k stars 163 forks source link

Unknown error... #286

Closed Zibri closed 2 months ago

Zibri commented 2 months ago

What I did:

1) I forked the repository.

2) I modiefied the Deploy to github pages so that the GITHUB_TOKEN can use the api.

3) used the most recent github api to deploy to pages.

4) removed the CNAME.

result: https://zibri.github.io/chitchatter/index.html

The strange thing is that if I load the manifest or the script files manually, they work.

Any ideas?

P.S. if you are available I'd like to chat with you because I have a few ideas... I wrote a very similar application some time ago, using a different and better method (instead of torrent announcements) Tell me if you are available...

Zibri commented 2 months ago

P.S. I had the same error when I used your workflow... and I had to add the permissions for the github token anyway.

Zibri commented 2 months ago

hmm I understood... the reason is that my github page is a subpage.. and it searches for the manifest in the webroot zibri.github.io...

jeremyckahn commented 2 months ago

Hi @Zibri, can you try uncommenting this line in your fork? https://github.com/jeremyckahn/chitchatter/blob/65c4c4890ad6be76d68e222619b320da6355cae6/vite.config.ts#L38

Here's a fork that seems to be working: https://github.com/jeremyckahn/chitchatter/compare/main...AtaraxiaSjel:chitchatter:main#diff-6a3b01ba97829c9566ef2d8dc466ffcffb4bdac08706d3d6319e42e0aa6890ddR38

Can you try adapting your config to be similar to this?

Zibri commented 2 months ago

yep! thanks! it works.

jeremyckahn commented 2 months ago

You're welcome @Zibri. I've updated the self-hosting instructions to hopefully make this a bit more straightforward.