刚开源了 可以参考一下
Discussion
赞啊,晚上空了部署试试看🫰
😅 部署了 也没什么体验上的变化
你只会得到这句话:
Run your relay and own your datas.
这句话很重要 [Doge] 我写了个电脑上运行的中继应用,可以备份自己的事件,也可以作为 nostrudel 的缓存中继,有兴趣可以试试看🤗
我等各位大佬更新以及我看看研究一下cloudflare worker怎么用。
这是啥错误?
~/cfrelay$ npm run deploy
> cfrelay@0.0.0 deploy
> wrangler deploy
⛅️ wrangler 3.51.0
-------------------
✘ [ERROR] Could not resolve "@noble/hashes/utils"
src/index.js:10:25:
10 │ import {bytesToHex} from '@noble/hashes/utils'
╵ ~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@noble/hashes/utils" as external to exclude it from the bundle, which will remove this error.
✘ [ERROR] Could not resolve "@noble/hashes/sha256"
src/index.js:11:23:
11 │ import { sha256 } from '@noble/hashes/sha256'
╵ ~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@noble/hashes/sha256" as external to exclude it from the bundle, which will remove this error.
✘ [ERROR] Could not resolve "@noble/curves/secp256k1"
src/index.js:12:24:
12 │ import { schnorr } from '@noble/curves/secp256k1'
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@noble/curves/secp256k1" as external to exclude it from the bundle, which will remove this error.
✘ [ERROR] Build failed with 3 errors:
src/index.js:10:25: ERROR: Could not resolve "@noble/hashes/utils"
src/index.js:11:23: ERROR: Could not resolve "@noble/hashes/sha256"
src/index.js:12:24: ERROR: Could not resolve "@noble/curves/secp256k1"
也许需要先跑一个 npm install 命令