Remove build directory
This commit is contained in:
parent
fa8963c80f
commit
d43f6cba2d
|
@ -1,6 +1,11 @@
|
|||
# Node
|
||||
node_modules
|
||||
ssl/
|
||||
.history
|
||||
*.db/
|
||||
|
||||
# Environment variables
|
||||
.env
|
||||
password.txt
|
||||
|
||||
# SQLite databases
|
||||
prisma/*.db
|
||||
|
||||
# TS build
|
||||
/out
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
"use strict";
|
|
@ -1 +0,0 @@
|
|||
"use strict";
|
|
@ -1 +0,0 @@
|
|||
"use strict";
|
|
@ -1 +0,0 @@
|
|||
"use strict";
|
|
@ -1,22 +0,0 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.loadConfig = void 0;
|
||||
const yaml_1 = __importDefault(require("yaml"));
|
||||
const fs_1 = require("fs");
|
||||
function loadConfig(filepath, def) {
|
||||
try {
|
||||
const data = (0, fs_1.readFileSync)(filepath).toString();
|
||||
const parsed = yaml_1.default.parse(data);
|
||||
return parsed || def;
|
||||
}
|
||||
catch (err) {
|
||||
console.error("Unable to load config:", err);
|
||||
}
|
||||
finally {
|
||||
return def;
|
||||
}
|
||||
}
|
||||
exports.loadConfig = loadConfig;
|
|
@ -1,22 +0,0 @@
|
|||
"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;
|
Loading…
Reference in New Issue