Files
whyrating/packages/storage/src/lib/schema.ts
2026-02-04 01:55:00 +01:00

14 lines
273 B
TypeScript

import * as z from "zod";
import { env } from "../env";
export const getObjectUrlSchema = z.object({
path: z.string(),
bucket: z
.string()
.optional()
.default(env.S3_BUCKET ?? ""),
});
export type GetObjectUrlInput = z.input<typeof getObjectUrlSchema>;