astro site with kv binding deploys but doesn't work

Hey folks 👋 I've got a working astro site with no special setup or the cloudflare integration, and I'm on to my second but this one has a KV binding that I'm attempting to access on the homepage. Things deploy fine/no build errors, but the site throws a 500 and I'm not sure where to find the logs

// astro.config.mjs
import { defineConfig } from "astro/config"
import svelte from "@astrojs/svelte"
import tailwind from "@astrojs/tailwind"
import cloudflare from "@astrojs/cloudflare"

// https://astro.build/config
export default defineConfig({
  integrations: [svelte(), tailwind()],
  output: "server",
  adapter: cloudflare({
    runtime: {
      mode: "local",
      type: "pages",
      bindings: {
        A_LINKS_KV: {
          type: "kv",
        },
      },
    },
  }),
})
Was this page helpful?