Skip to main content

BundledFileName

Overview

const BundledFileName: `"_worker.js"`

A special file name that sets Cloudflare Pages to advanced mode.

When using a _worker.js file, Cloudflare Pages will be in "advanced mode". Advanced mode disables the dyanmic aspects of the platform:

  • The _worker.js file is deployed as is and must be written using the Module Worker syntax.
  • Your /functions directory will be ignored.
  • All incoming requests will be sent to your bundled worker file.
  • You will have parse incoming request URLS with a router such as PatternToPageComponentMap

See

Defined in

bundling/esbuild/variables/BundledFileName.ts:30