After importing packages and testing use cases with cloud function my database with data totally disappear and the server becomes unreachable. what should I do?
You should post the server url first to see if we can help.
it works now, I only did a server restart that you can also do from admin interface
@cryptokid Alright, I will do it next time.
Could this happen due to the wrong way of package import into the cloud function? If I want to use npm package should I create package.json? If I want to use npm package should I initialize it inside a specific cloud function or at the top of the cloud function file?
I donβt know what happened.
If you try to self host the server then you can completely control what runs in cloud code.
Is this mean I can not use the npm package in the moralis hosting environment?
You can not use that unless you can include its complete package code directly in cloud code
1 Like