Cloudflare Pages Functions - bundled or not?

I wonder how Cloudflare Pages Functions work under the hood

  • are they all bundled into a single Worker, or each Pages Function is compiled into a dedicated Worker?

The reason I’m asking is that up until now I’ve been sure that each Function is translated into a single Worker.

But recently I learned about the wrangler pages functions build ./functions which compiles all my functions files into a single _worker.bundle. That makes my think I might have been wrong.

I want to have a proper mental modal when developing my apps.

They are indeed all bundled into a single Worker.


That was really fast :rocket:
Thank you for the answer!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.