mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 18:53:23 +00:00
Merge pull request #11986 from strapi/fix/serve-admin
Remove build from install script
This commit is contained in:
commit
d9b540aaed
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user