first commit
This commit is contained in:
18
demos/preview/astro.config.mjs
Normal file
18
demos/preview/astro.config.mjs
Normal file
@@ -0,0 +1,18 @@
|
||||
import cloudflare from "@astrojs/cloudflare";
|
||||
import react from "@astrojs/react";
|
||||
import { previewDatabase } from "@emdashcms/cloudflare";
|
||||
import { defineConfig } from "astro/config";
|
||||
import emdash from "emdash/astro";
|
||||
|
||||
export default defineConfig({
|
||||
output: "server",
|
||||
adapter: cloudflare(),
|
||||
integrations: [
|
||||
react(),
|
||||
emdash({
|
||||
// DO-backed preview database — populated from source site snapshots
|
||||
database: previewDatabase({ binding: "PREVIEW_DB" }),
|
||||
}),
|
||||
],
|
||||
devToolbar: { enabled: false },
|
||||
});
|
||||
Reference in New Issue
Block a user