1.1.0 • Published 1 year ago

@atomico/cloudflare v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@atomico/cloudflare

This bundle of tools allows using the context from Cloudflare Pages in functions created with @atomico/vite, in the mode serverActions:{type:"cloudflare"}.

Example

import { useKv } from "@atomico/cloudflare";

export async function setConfig(config: { id: string; value: string }) {
  const kv = useKv("config");
  await kv.put(config.id, config.value);
  return config;
}
1.1.0

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago