@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
17 lines (14 loc) • 438 B
JavaScript
import path from 'node:path';
import { loadFile } from './files.mjs';
const getUserConfig = async (fileNames, ctx)=>{
for (const file of fileNames){
const filePath = path.join(ctx.appDir, 'src', 'admin', file);
const configFile = await loadFile(filePath);
if (configFile) {
return configFile;
}
}
return undefined;
};
export { getUserConfig };
//# sourceMappingURL=config.mjs.map