import { BundledFileName } from "https://deno.land/x/keywork@v6.2.1/bundling/esbuild/variables/BundledFileName.ts";
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