Skip to content

@cloudflare/pages-functions@0.1.0

Choose a tag to compare

@workers-devprod workers-devprod released this 30 Jul 16:26
96fd16f

Minor Changes

  • #14785 5e6556a Thanks @dario-piotrowicz! - Publish helpers for compiling Pages Functions directories into Workers bundle

    Provides both a programmatic API and a CLI (pages-functions build) for converting a Cloudflare Pages functions/ 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 (ASSETS by default) when applicable.

  • #14928 f05a0de Thanks @dario-piotrowicz! - Improve asset directory error messages in Pages Functions builds

    Previously, 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.