cpns / packages /env /src /web.ts
rogasper's picture
feat: integrate Cloudflare Turnstile for enhanced security in sign-up and email verification processes. Implement rate limiting for sign-up attempts and add Turnstile validation to prevent abuse. Update environment configuration to support Turnstile keys and enhance user experience with improved error handling and feedback.
83e82db
Raw
History Blame Contribute Delete
375 Bytes
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,
});