@cloudflare/pages-functions@0.1.0
📦 cloudflare-workersView on GitHub →
✨ 2 features
Summary
This release introduces new features for compiling Pages Functions directories into Workers bundles and improves error messages for asset directory handling in Pages Functions builds.
✨ New Features
- Publish helpers for compiling Pages Functions directories into Workers bundle, providing both a programmatic API and a CLI (`pages-functions build`). This 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 (`ASSETS` by default) when applicable.
- Improve asset directory error messages in Pages Functions builds, splitting the single error message for invalid imported asset directories into two distinct, actionable messages: '<path>' does not exist. Please create the directory or check the path and try again.' and ''<path>' is not a directory. Please provide a path to a valid directory.'