mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 22:38:02 +03:00
fix(ghbot): general touchups to get it compiling
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import "dotenv";
|
||||
import { config } from "dotenv";
|
||||
import p from "prudence";
|
||||
|
||||
// init dotenv
|
||||
config();
|
||||
|
||||
function ParseEnvVars() {
|
||||
const err = p(
|
||||
process.env,
|
||||
@@ -17,7 +20,7 @@ function ParseEnvVars() {
|
||||
);
|
||||
|
||||
if (err) {
|
||||
throw new Error(err.message);
|
||||
throw new Error(`${err.keychain}: ${err.message}`);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -142,3 +142,5 @@ app.all("*", (req, res) =>
|
||||
);
|
||||
|
||||
console.log(`Starting express server on port ${ProcessEnv.port}.`);
|
||||
|
||||
app.listen(ProcessEnv.port);
|
||||
|
||||
Reference in New Issue
Block a user