Skip to content

Commit

Permalink
feat: use dweb.link as the preview url
Browse files Browse the repository at this point in the history
use base32 cid v1 flavour and use dweb.link as the preview domain.

see: ipfs-inactive/docs#405

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
  • Loading branch information
olizilla committed Dec 6, 2019
1 parent c044af5 commit 6a7206e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/pin-to-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ root_cid=$(ipfs-cluster-ctl \
--host $HOST \
--basic-auth $CLUSTER_USER:$CLUSTER_PASSWORD \
add --quieter \
--cid-version 1 \
--name "$PIN_NAME" \
--recursive $INPUT_DIR )

preview_url=https://ipfs.io/ipfs/$root_cid
preview_url="https://$root_cid.ipfs.dweb.link"

update_github_status "success" "Website added to IPFS" "$preview_url"

Expand Down

0 comments on commit 6a7206e

Please sign in to comment.