sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.86k stars 136 forks source link

added workaround to avoid full upload #278

Open beenotung opened 7 years ago

beenotung commented 7 years ago

I would like to join the discussion at https://github.com/sintaxi/surge/issues/119 but the conversation has been locked and limited to collaborators. So I'm creating a PR instead.

This workaround may race sub-domain name among other users but the effect should be limited since naming conflict will only happen when hash collision occurs.

I still prefer to store files on surge.sh over IPFS since I cannot guarantee my node is online when the resource is being requested.

The advantage of using surge.sh over Github and GitLab is that I can choose to list or unlist the item according to the need. GitLab page seems to support private repo but I've not figured out how to even start the GitLab page.