Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ai-search-plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@emdash-cms/cloudflare": minor
---

Adds AI Search plugin with content indexing, search modal, and admin settings UI. Includes a Cloudflare-native integration using the AI Search worker binding and a standalone package using the REST API.
2 changes: 2 additions & 0 deletions demos/cloudflare/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
cloudflareImages,
cloudflareStream,
} from "@emdash-cms/cloudflare";
import { aiSearch } from "@emdash-cms/cloudflare/plugins";
import { formsPlugin } from "@emdash-cms/plugin-forms";
import { webhookNotifierPlugin } from "@emdash-cms/plugin-webhook-notifier";
import { defineConfig, fontProviders } from "astro/config";
Expand Down Expand Up @@ -72,6 +73,7 @@ export default defineConfig({
plugins: [
// Test plugin that exercises all v2 APIs
formsPlugin(),
aiSearch(),
],
// Sandboxed plugins (run in isolated workers)
sandboxed: [webhookNotifierPlugin()],
Expand Down
1 change: 0 additions & 1 deletion demos/cloudflare/emdash-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface Page {
slug: string | null;
status: string;
title: string;
template?: "Default" | "Full Width";
content?: PortableTextBlock[];
createdAt: Date;
updatedAt: Date;
Expand Down
4 changes: 2 additions & 2 deletions demos/cloudflare/src/components/PostCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const formattedDate = date
}

.card-image {
aspect-ratio: 16 / 10;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: var(--radius-lg);
background: var(--color-surface);
Expand All @@ -138,7 +138,7 @@ const formattedDate = date
}

.card-placeholder {
aspect-ratio: 16 / 10;
aspect-ratio: 16 / 9;
border-radius: var(--radius-lg);
background: var(--color-surface);
margin-bottom: var(--spacing-4);
Expand Down
Loading
Loading