Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
import { z } from "zod";
import { MAX_UPLOAD_SIZE } from "./constants";
import { toBytes } from "./utils/to-bytes";
export const maxSize = z
.string()
.default(MAX_UPLOAD_SIZE)
// user inputs the max value in mb and we transform it to bytes
.transform(toBytes);
export const maxAssets = z.string().default("50").transform(Number.parseFloat);