Skip to content

atomicojs/cloudflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published