that should only throw if there's no Function uploaded
that should only throw if there's no Function uploaded
✘ [ERROR] No routes found when building Functions directory: /opt/buildhome/repo/functionsexport const onRequest = handleRequest instead, it worked fine before. I basically need context in my functions to access the bindings name for D1.
request and env inside of it where you can access everything
export default {
async fetch(request, env, ctx) {
return handleRequest(request, ctx);
},
};