@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
13 lines (10 loc) • 434 B
JavaScript
import { resolveProductionConfig, mergeConfigWithUserConfig } from './config.mjs';
const build = async (ctx)=>{
const config = await resolveProductionConfig(ctx);
const finalConfig = await mergeConfigWithUserConfig(config, ctx);
const { build: viteBuild } = await import('vite');
ctx.logger.debug('Vite config', finalConfig);
await viteBuild(finalConfig);
};
export { build };
//# sourceMappingURL=build.mjs.map