Rocky
CDCloudflare Developers
•Created by Rocky on 3/2/2024 in #general-help
Does Node Work With Cloudflare? Or What Is Your Recommended Way To Use Cloudflare?
Hey yall, I'm a very new web developer and I'm trying to just learn more about hosting and publishing sites. I've seen the speed that cloudflare workers offers in terms of API requests and feel it would be really cool to be able to host my backend requests on cloudflare to be handled. However, I generally develop in Javascript/NodeJS, thus my api routes are often some sort of router/handler (I saw hono seems to work well with cloudflare so I've been using it as of recently) and some logic in the route, generally for like a login system or something I prefer to use bcrypt's cryptography library for hashing/checking hashed passwords, however with trying to call a bcrypt function inside of the hono route, it works locally then when trying to push the app to cloudflare I get errors. Can cloudflare be used in any capacity with NodeJS and specifically packages? Or does all of my logic have to be written out directly in that route not importing a node module package or anything?
12 replies