Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Last active April 5, 2026 16:24
Show Gist options
  • Select an option

  • Save yasudacloud/54ac499ecac25ae33b961f371ff6b843 to your computer and use it in GitHub Desktop.

Select an option

Save yasudacloud/54ac499ecac25ae33b961f371ff6b843 to your computer and use it in GitHub Desktop.
EmDash Cloudflare
import cloudflare from "@astrojs/cloudflare";
import react from "@astrojs/react";
import {d1, r2} from "@emdash-cms/cloudflare";
import {defineConfig} from "astro/config";
import emdash from "emdash/astro";
export default defineConfig({
output: "server",
adapter: cloudflare(),
security: {},
image: {
layout: "constrained",
responsiveStyles: true,
},
integrations: [
react(),
emdash({
database: d1({binding: "DB", session: "auto"}),
storage: r2({binding: "MEDIA"}),
}),
],
devToolbar: {enabled: false},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment