core/loaders/environment.loader.ts

core/loaders/environment.loader.ts is a file in Bane's Lab Deploy. 13 lines of code and 1 definition.

import { optionalTextOf, textOf } from "@ssot/secrets";
import type { Secrets } from "#types/deployment.types";

export const loadSecrets = function loadSecrets(): Secrets {
    return {
        deployWebhook: textOf("DEPLOY_DISCORD_WEBHOOK_URL"),
        host: textOf("DEPLOY_HOST"),
        keyFile: textOf("DEPLOY_KEY_FILE"),
        nginxWebhook: textOf("NGINX_DISCORD_WEBHOOK_URL"),
        passphrase: optionalTextOf("SSH_PASSPHRASE"),
        searchKey: textOf("INDEXNOW_KEY"),
        user: textOf("DEPLOY_USER"),
    };
};