mpp-server-dev2/out/util/env.js

23 lines
696 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.env = void 0;
const dotenv_1 = __importDefault(require("dotenv"));
const env_core_1 = require("@t3-oss/env-core");
const zod_1 = require("zod");
dotenv_1.default.config();
exports.env = (0, env_core_1.createEnv)({
server: {
PORT: zod_1.z.coerce.number(),
SALT: zod_1.z.string().min(10),
ADMIN_PASS: zod_1.z.string()
},
isServer: true,
clientPrefix: "",
client: {},
runtimeEnv: process.env
});
exports.default = exports.env;