"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getApiConfig = getApiConfig;
exports.getApiUrl = getApiUrl;
exports.getAuthUrl = getAuthUrl;
function getApiConfig() {
    // Check for environment variable first
    const baseUrl = process.env.MYCONTEXT_API_BASE_URL ||
        process.env.NEXT_PUBLIC_API_URL ||
        "https://mycontext.fbien.com";
    return {
        baseUrl,
        authUrl: `${baseUrl}/auth`,
        apiUrl: `${baseUrl}/api/v1`,
    };
}
function getApiUrl(endpoint) {
    const config = getApiConfig();
    return `${config.apiUrl}${endpoint}`;
}
function getAuthUrl(path) {
    const config = getApiConfig();
    return `${config.authUrl}${path}`;
}
//# sourceMappingURL=api.js.map