This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Description
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
/**
* Respond to the request
* @param {Request} request
*/
async function handleRequest(request) {
const fd = new FormData()
return new Response('hello world', {status: 200})
}
This script runs in CloudFlare workers normally, but not in CloudWorker.
But it can be solved by using bindings:
{
bindings: {
FormData: require('form-data')
}
}