You'll almost certainly have to change something. At the very least it needs to be bundled into a si

You'll almost certainly have to change something. At the very least it needs to be bundled into a single JS file which exports a fetch handler: https://developers.cloudflare.com/workers/runtime-apis/handlers/fetch.

Beyond that, it depends entirely on the implementation of your site. Workers supports many but not all Node.JS APIs. I'm guessing your Node.JS site uses
fs
to serve files, which will not work in Workers.
Was this page helpful?