Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/DogPawHat/movie-frontend.
Something went wrong. Try again.
422 B · 18 lines
TypeScript
12345678910111213141516171819import { createEnv } from "@t3-oss/env-core";import * as v from "valibot";
export const env = createEnv({ /** * The prefix that client-side variables must have. This is enforced both at * a type-level and at runtime. */ clientPrefix: "VITE_PUBLIC_",
client: { VITE_PUBLIC_API_URL: v.pipe(v.string(), v.url(), v.minLength(1)), },
runtimeEnv: import.meta.env,
emptyStringAsUndefined: true,});