notion-astro-loader
Version:
Notion loader for the Astro Content Layer API. It allows you to load pages from a Notion database then render them as pages in a collection.
16 lines (14 loc) • 321 B
text/typescript
import { z } from "astro/zod";
export const filePropertyResponse = z.object({
type: z.literal("file"),
file: z.object({
url: z.string(),
expiry_time: z.string(),
}),
});
export const externalPropertyResponse = z.object({
type: z.literal("external"),
external: z.object({
url: z.string(),
}),
});