Questions: 1. How does cloudflare functions handle utility/helper .ts or .js functions in the functi

Questions:
  1. How does cloudflare functions handle utility/helper .ts or .js functions in the functions directory when using file based routing?
  2. Any way to see what our actual functions bundled build file that is going to be deployed will look like while developing? npx wrangler pages ... something
Have googled around, asked perplexity, etc but wasn't able to find this clearly referenced in the docs (ie: chatbots made things up without clear references lol).

Under the routing information in the docs, wasn't made explicit either regarding utility and helper funcs.

For EX: I have repeating code in multiple routes that are exporting onRequest that i would like to refactor out to to a single util module in the same directory, and not deploy that module as a route
image.png
Was this page helpful?