ProtectedconfigProtectedhasProtectedoptionsOptions of the file server: a copy of cell.serve-static.options, which stays untouched.
ProtectedpathProtected ReadonlyrequestProtectedserveProtectedcreateAdds the configured headers to every file, and gives HTML files their own Cache-Control
(htmlMaxAge in milliseconds, default 0) so that a new build of the page is picked up.
ProtectedinitSets up the file server once. Cloudflare Workers allow I/O (existsSync) only while a request is
handled; the application, and with it this component, starts on the first request there.
Whether there is a frontend to serve: embedded in the bundle (
--single) or on disk. On Cloudflare Workers the platform serves the frontend and the worker has no copy.