3 ms·
"By using your repo’s filesystem convention and exporting one or more function handlers, Pages can leverage Workers to deploy serverless functions on your behal
by locusofself 5y ago
"By using your repo’s filesystem convention and exporting one or more function handlers, Pages can leverage Workers to deploy serverless functions on your behalf. To begin, simply add a ./functions directory in the root of your project"
just my .02 but that first sentence is way more confusing than it needs to be.
- acjohnson55 5y agoI'm pretty sure it just means that file paths are mapped to URL routes and the functions exported within become handlers for the given HTTP methods. This would be as opposed to implementing the routing logic as code. But I haven't used it, so I don't know.