File size: 375 Bytes
cfc59e4
 
 
 
 
 
 
a5bd496
83e82db
cfc59e4
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { createEnv } from "@t3-oss/env-core";
import { z } from "zod";

export const env = createEnv({
  clientPrefix: "VITE_",
  client: {
    VITE_SERVER_URL: z.url(),
    VITE_SITE_URL: z.url().default("http://localhost:5173"),
    VITE_CLOUDFLARE_TURNSTILE_SITE_KEY: z.string().optional(),
  },
  runtimeEnv: (import.meta as any).env,
  emptyStringAsUndefined: true,
});