Commit 1e752a0 1 parent 7049c28 commit 1e752a0 Copy full SHA for 1e752a0
File tree 4 files changed +11
-1
lines changed
src/common/services/pinata
4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
# #? Deployment environment
2
+ PINATA_JWT =
3
+ NEXT_PUBLIC_IPFS_GATEWAY_URL = potlock.mypinata.cloud
2
4
3
5
# test | staging | production
4
6
NEXT_PUBLIC_ENV = test
Original file line number Diff line number Diff line change 44
44
"errorLens.statusBarMessageType" : " activeLine" ,
45
45
"errorLens.warningGutterIconColor" : " #ff942f" ,
46
46
"cSpell.words" : [
47
+ " =createproject" ,
47
48
" amichaeltest" ,
48
49
" Aptos" ,
49
50
" Attributify" ,
76
77
" METAPOOL" ,
77
78
" mpdao" ,
78
79
" mpdaovoting" ,
80
+ " mypinata" ,
79
81
" NADABOT" ,
80
82
" narwallets" ,
81
83
" naxios" ,
100
102
" SOURCECODE" ,
101
103
" stnear" ,
102
104
" svgr" ,
103
- " =createproject" ,
104
105
" typecheck" ,
105
106
" uidotdev" ,
106
107
" unfollow" ,
Original file line number Diff line number Diff line change
1
+ export { pinataClient as pinata } from "./singleton.client" ;
Original file line number Diff line number Diff line change
1
+ import { PinataSDK } from "pinata-web3" ;
2
+
3
+ export const pinataClient = new PinataSDK ( {
4
+ pinataJwt : process . env . PINATA_JWT ! ,
5
+ pinataGateway : "example-gateway.mypinata.cloud" ,
6
+ } ) ;
You can’t perform that action at this time.
0 commit comments