UNPKG

studiocms

Version:

Astro Native CMS for AstroDB. Built from the ground up by the Astro community.

24 lines (23 loc) 634 B
import { z } from "astro/zod"; const developerConfigSchema = z.object({ /** * Enable demo mode for the site * * If set to an object, the site will be in demo mode, and the user will be able to login with the provided username and password. * * @default false * @example * ```ts * { * demoMode: { * username: "demo_user", * password: "some-demo-password" * } * } * ``` */ demoMode: z.union([z.literal(false), z.object({ username: z.string(), password: z.string() })]).optional().default(false) }).optional().default({ demoMode: false }); export { developerConfigSchema };