-
-
Save yasudacloud/54ac499ecac25ae33b961f371ff6b843 to your computer and use it in GitHub Desktop.
EmDash Cloudflare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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