Created
July 29, 2019 09:39
-
-
Save andrewosh/d71716e7a553829a2aee8b7cfd728ccb to your computer and use it in GitHub Desktop.
Split hyperdrive content and metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```js | |
const store = corestore(path => { | |
if (path.indexOf('default') === -1) return raf(`${contentDest}/${path}`) | |
return raf(`${metadataDest}/${path}`) | |
}) | |
const drive = hyperdrive(store) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment