Gal Podlipnik 365aea2997
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 58s
cicd 3
2025-06-12 16:22:33 +02:00

13 lines
482 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.env = void 0;
const zod_1 = require("zod");
const envSchema = zod_1.z.object({
CORS_ORIGIN: zod_1.z.string().default("*"),
DATABASE_URL: zod_1.z.string(),
JWT_SECRET: zod_1.z.string(),
NODE_ENV: zod_1.z.enum(["development", "production", "test"]).default("development"),
PORT: zod_1.z.string().transform(Number).default("3000"),
});
exports.env = envSchema.parse(process.env);