Minor Changes
-
#14785
5e6556aThanks @dario-piotrowicz! - Publish helpers for compiling Pages Functions directories into Workers bundleProvides both a programmatic API and a CLI (
pages-functions build) for converting a Cloudflare Pagesfunctions/directory into a Cloudflare Workers bundle:npx @cloudflare/pages-functions build ./functions --outdir ./dist
The package compiles the Worker and its auxiliary modules, but does not deploy them or generate deployment configuration. Consumers must provide the appropriate Wrangler configuration, including the selected fallback service binding (
ASSETSby default) when applicable. -
#14928
f05a0deThanks @dario-piotrowicz! - Improve asset directory error messages in Pages Functions buildsPreviously, when an imported asset directory was invalid, a single error message was shown:
'<path>' does not exist or is not a directory. This has been split into two distinct, actionable messages:'<path>' does not exist. Please create the directory or check the path and try again.'<path>' is not a directory. Please provide a path to a valid directory.