matcha-keystone-utils
Version:
Useful features for Keystone 6: validators, fields, componentBlocks...
15 lines (14 loc) • 445 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.imageUrl = void 0;
const index_1 = require("../index");
const imageUrl = (urlFieldConfig) => (0, index_1.url)({
...urlFieldConfig,
ui: {
...urlFieldConfig?.ui,
views: process.env.IS_LIBRARY_DEV
? "./src/url/imageUrl/view"
: "matcha-keystone-utils/dist/url/imageUrl/view",
},
});
exports.imageUrl = imageUrl;