"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MediaURL = void 0;
var path_1 = require("path");
var base_path_1 = __importDefault(require("lib/base-path"));
function MediaURL(url) {
    if (typeof url != "string") {
        // e.g., a module import destined for the optimized next Image component.
        return url;
    }
    if (url.includes("://")) {
        return url;
    }
    return (0, path_1.join)(base_path_1.default, url);
}
exports.MediaURL = MediaURL;
//# sourceMappingURL=util.js.map