1.0.1 • Published 4 years ago

@erwink/adapter-cloudflare v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

adapter-cloudflare

Svelte Kit Adapter for Cloudflare Workers

Configuration

Static assets will be placed in your Worker's configured bucket directory.

[site]
  entry-point = "workers-site"
  bucket = "workers-site/assets"

Usage

A file containing a fetch event handler will be placed in the workers entry point directory.

You can use it like so:

import { handleApp } from './handleApp'

addEventListener('fetch', evt => {

  evt.respondWith(handleApp(evt))
})
1.0.1

4 years ago

1.0.0

4 years ago