Usually Hugo, but I have successfully

Usually Hugo, but I have successfully set up and used functions in projects that don't use a framework, too. To be slightly more specific, I've managed to get my functions talking with Stripe checkout and Google scripts, but not Respond or Mimetext.
2 Replies
tmcltr
tmcltr4mo ago
My idiot-level impression is that the functions I've been successful with are the ones that aren't dependent on third-party modules like node. And that my Stripe stuff works because there's some sort of Stripe support built-in to Functions in a way that's lacking for Respond or various node projects that you can manually install with Workers apps. Maybe what I'm asking is how do you install node modules in Functions? But I don't know that that's the right question. I feel like I might be missing something more fundamental about the difference between Functions and Workers
IEatBeans
IEatBeans4mo ago
Afaik the workers and functions are the same runtime and support the same nodejs apis. Some node modules work if you enable compatibility in wrangler.toml and prefix the module name with node: in the import statement, but others rely on apis that are not available in the workers or functions runtime. CF has been slowly adding some which makes mode and more node modules work.
Want results from more Discord servers?
Add your server