diff --git a/.gitignore b/.gitignore index 157fa9ecc..1718de2d7 100644 --- a/.gitignore +++ b/.gitignore @@ -65,4 +65,5 @@ __screenshots__/ .emdash-bundle-tmp # Downloaded test data (fetched on demand in CI) -examples/wp-theme-unit-test/ \ No newline at end of file +examples/wp-theme-unit-test/ +.opencode diff --git a/demos/cloudflare/emdash-env.d.ts b/demos/cloudflare/emdash-env.d.ts index abb26262f..ea5f02a61 100644 --- a/demos/cloudflare/emdash-env.d.ts +++ b/demos/cloudflare/emdash-env.d.ts @@ -10,6 +10,7 @@ export interface Page { slug: string | null; status: string; title: string; + template?: "Default" | "Full Width"; content?: PortableTextBlock[]; createdAt: Date; updatedAt: Date; diff --git a/packages/admin/src/router.tsx b/packages/admin/src/router.tsx index f87261907..dc02832f4 100644 --- a/packages/admin/src/router.tsx +++ b/packages/admin/src/router.tsx @@ -242,7 +242,7 @@ function ContentListPage() { queryFn: ({ pageParam }) => fetchContentList(collection, { locale: activeLocale, - cursor: pageParam as string | undefined, + cursor: pageParam, limit: 100, }), initialPageParam: undefined as string | undefined, diff --git a/packages/core/src/cli/commands/bundle.ts b/packages/core/src/cli/commands/bundle.ts index d7dea7f0d..a250e5653 100644 --- a/packages/core/src/cli/commands/bundle.ts +++ b/packages/core/src/cli/commands/bundle.ts @@ -500,7 +500,7 @@ export const bundleCommand = defineCommand({ // Plugins published to npm with source exports will break site builds // because the sandbox module generator embeds the resolved file as-is. if (pkg.exports) { - for (const issue of findSourceExports(pkg.exports as Record)) { + for (const issue of findSourceExports(pkg.exports)) { consola.error( `Export "${issue.exportPath}" points to source (${issue.resolvedPath}). ` + `Package exports must point to built files (e.g. dist/*.mjs). ` + diff --git a/packages/core/src/database/migrations/runner.ts b/packages/core/src/database/migrations/runner.ts index 48205dfb7..838c6b38a 100644 --- a/packages/core/src/database/migrations/runner.ts +++ b/packages/core/src/database/migrations/runner.ts @@ -67,6 +67,7 @@ const MIGRATIONS: Readonly> = Object.freeze({ "030_widen_scheduled_index": m030, "031_bylines": m031, "032_rate_limits": m032, + "033_optimize_content_indexes": m033, }); /** Total number of registered migrations. Exported for use in tests. */