@strapi/strapi
Version:
An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite
19 lines (15 loc) • 469 B
JavaScript
;
var path = require('node:path');
var files = require('./files.js');
const getUserConfig = async (fileNames, ctx)=>{
for (const file of fileNames){
const filePath = path.join(ctx.appDir, 'src', 'admin', file);
const configFile = await files.loadFile(filePath);
if (configFile) {
return configFile;
}
}
return undefined;
};
exports.getUserConfig = getUserConfig;
//# sourceMappingURL=config.js.map