Skip to main content
Create a section schema. Validation runs in development only: the validation runtime (zod) is imported lazily inside a process.env.NODE_ENV !== 'production' guard, which the consuming bundler statically evaluates and eliminates in production builds — both the browser bundle and the Oxygen/SSR worker. Production storefronts therefore ship section schemas with zero validation overhead and no zod. Returns the original schema immediately. Outside production, validation issues are logged as console.warn warnings; validation and import failures never throw through the call.

Parameters

required

Returns

SchemaType