"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TERMINAL_MAX_WIDTH = exports.REMOTE_APP_BASE_URL = exports.REMOTE_API_BASE_URL = void 0;
// This is used for fetching and sharing evals.
exports.REMOTE_API_BASE_URL = 
// TODO(ian): Backwards compatibility, 2024-04-01
process.env.NEXT_PUBLIC_PROMPTFOO_REMOTE_API_BASE_URL ||
    process.env.NEXT_PUBLIC_PROMPTFOO_BASE_URL ||
    process.env.PROMPTFOO_REMOTE_API_BASE_URL ||
    `https://api.promptfoo.dev`;
// This is used for viewing evals.
exports.REMOTE_APP_BASE_URL = process.env.NEXT_PUBLIC_PROMPTFOO_BASE_URL ||
    process.env.PROMPTFOO_REMOTE_APP_BASE_URL ||
    `https://app.promptfoo.dev`;
// Maximum width for terminal outputs.
exports.TERMINAL_MAX_WIDTH = process?.stdout?.columns && process?.stdout?.columns > 10 ? process?.stdout?.columns - 10 : 120;
//# sourceMappingURL=constants.js.map