feat: support for bzz.link cids when downloading files (#350)

* feat: detect and extract bzz.link cids into hash when downloading files

* test: add quite thorough testsuite
This commit is contained in:
Vojtech Simetka
2022-04-25 20:38:36 +05:00
committed by GitHub
parent a67be7a31e
commit 3784b29f14
4 changed files with 176 additions and 18 deletions
+1
View File
@@ -1,3 +1,4 @@
export const META_FILE_NAME = '.swarmgatewaymeta.json'
export const PREVIEW_FILE_NAME = '.swarmgatewaypreview.jpeg'
export const PREVIEW_DIMENSIONS = { maxWidth: 250, maxHeight: 175 }
export const BZZ_LINK_DOMAIN = process.env.REACT_APP_BZZ_LINK_DOMAIN || 'bzz.link'