UNPKG

@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

18 lines (14 loc) 682 B
'use strict'; var config = require('./config.js'); const build = async (ctx)=>{ const config$1 = await config.resolveProductionConfig(ctx); const finalConfig = await config.mergeConfigWithUserConfig(config$1, ctx); // Imported dynamically so this file's CJS build resolves Vite's ESM Node API instead of // its CJS entry, which emits "The CJS build of Vite's Node API is deprecated". // https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated const { build: viteBuild } = await import('vite'); ctx.logger.debug('Vite config', finalConfig); await viteBuild(finalConfig); }; exports.build = build; //# sourceMappingURL=build.js.map