@atomico/cloudflare
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@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;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @atomico/cloudflare

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

4.13 kB

Total Files

6

Last publish

Collaborators

  • uppercod