Tyler Hillery
CDCloudflare Developers
•Created by Tyler Hillery on 3/5/2024 in #pages-help
Trouble getting Static Form Pages Plugin working with KV on Astro Site
WebDev noob here and struggling to integrate the Static Form Pages Plugin with KV on my Astro site. I followed the instructions here and updated my
astro.config.mjs
to use directory mode and src/env.d.ts
to include define Cloudflare runtime and KV type. Also updated KV namespace bindings on Cloudflare Pages > Settings > Fuctions. Also added a wrangler.toml
with the kv_namespaces.
Could someone just provide some psuedo code on how you would update this respondeWith
function that serializes the formData and saves it to a KV namespace?
For content here is the error I get from the real time function logs
here is what I tried
1 replies