Merge pull request #11986 from strapi/fix/serve-admin

Remove build from install script
This commit is contained in:
Alexandre BODIN 2021-12-22 15:05:03 +01:00 committed by GitHub
commit d9b540aaed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,29 +24,6 @@ module.exports = async function createQuickStartProject(scope) {
if (scope.runQuickstartApp !== true) return;
try {
await trackUsage({ event: 'willBuildAdmin', scope });
await execa('npm', ['run', 'build', '--', '--no-optimization'], {
stdio: 'inherit',
cwd: scope.rootPath,
env: {
FORCE_COLOR: 1,
},
});
await trackUsage({ event: 'didBuildAdmin', scope });
} catch (error) {
await trackUsage({
event: 'didNotBuildAdmin',
scope,
error,
});
await captureStderr('didNotBuildAdmin', error);
process.exit(1);
}
console.log(`Running your Strapi application.`);
try {