How to add node package at Moralis Cloud Function

I want to use relayer address as signer on my blockchain transaction that trigger by cloud function, the problem is I have to use and import some package from defender-relay-client that provide by npm to declare my relayer as a provider on my project. is any advice to solve this case?

1 Like

you can not do that easily now, how you could do it it would be to include the entire code of the library in cloud code

ok, thanks for your answer @cryptokid ,
How if i import the library using CDN, is it posible on Moralis Cloud Function?

it may be possible, if you use fetch and then eval