Sveltekit Cloudflare Adapter

screenshot of Sveltekit Cloudflare Adapter

Alternative SvelteKit adaptor for Cloudflare workers. Designed to be standalone and not use wrangler.

Overview:

The @budgetdraw/sveltekit-cloudflare-adapter is an alternative adaptor for Cloudflare workers, specifically designed for use with SvelteKit. It is a standalone solution that does not depend on the wrangler tool.

Features:

  • Alternative Adaptor: Provides an alternative adaptor specifically designed for Cloudflare workers in conjunction with SvelteKit.
  • Standalone Solution: Does not require the use of wrangler, offering a self-contained solution for integrating SvelteKit with Cloudflare workers.
  • Extended API: Includes an additional non-standard addition to the SvelteKit API, allowing for the use of the request object's cfFetchEvent property. This property contains the Cloudflare Worker FetchEvent, enabling actions to be performed after the response has been sent to the user, such as passing it to toucan-js.

Summary:

The @budgetdraw/sveltekit-cloudflare-adapter is a standalone solution that enables integration between Cloudflare workers and SvelteKit. It provides an alternative adaptor specifically designed for this purpose, eliminating the need for the wrangler tool. Additionally, it extends the SvelteKit API with a non-standard addition, allowing for further customization and actions to be performed after the response has been sent.