UNPKG

studiocms

Version:

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

40 lines (39 loc) 1.03 kB
import { z } from 'astro/zod'; export declare const developerConfigSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{ /** * 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.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{ username: z.ZodString; password: z.ZodString; }, "strip", z.ZodTypeAny, { password: string; username: string; }, { password: string; username: string; }>]>>>; }, "strip", z.ZodTypeAny, { demoMode: false | { password: string; username: string; }; }, { demoMode?: false | { password: string; username: string; } | undefined; }>>>;