🎥 Make videos programmatically with React
Site create time starts after bundle is complete
Matt McGillivraydc07ac8732d4
diff --git a/packages/cloudrun/src/cli/commands/sites/create.ts b/packages/cloudrun/src/cli/commands/sites/create.tsindex 94a27e1d34..3cf6940046 100644--- a/packages/cloudrun/src/cli/commands/sites/create.ts+++ b/packages/cloudrun/src/cli/commands/sites/create.ts@@ -116,6 +116,7 @@ export const sitesCreateSubcommand = async (updateProgress();const bundleStart = Date.now();+ let uploadStart = Date.now();const {serveUrl, siteName, stats} = await deploySite({entryPoint: file,@@ -127,6 +128,9 @@ export const sitesCreateSubcommand = async (progress,doneIn: progress === 100 ? Date.now() - bundleStart : null,};+ if (progress === 100) {+ uploadStart = Date.now();+ }},onUploadProgress: (p) => {multiProgress.deployProgress = {@@ -144,9 +148,8 @@ export const sitesCreateSubcommand = async (updateProgress();- const uploadStart = Date.now();-const uploadDuration = Date.now() - uploadStart;+multiProgress.deployProgress = {sizeUploaded: 1,totalSize: 1,diff --git a/packages/lambda/src/cli/commands/sites/create.ts b/packages/lambda/src/cli/commands/sites/create.tsindex 07b6cb0430..826a74ed5b 100644--- a/packages/lambda/src/cli/commands/sites/create.ts+++ b/packages/lambda/src/cli/commands/sites/create.ts@@ -102,7 +102,7 @@ export const sitesCreateSubcommand = async (updateProgress();const bundleStart = Date.now();- const uploadStart = Date.now();+ let uploadStart = Date.now();const {serveUrl, siteName, stats} = await deploySite({entryPoint: file,@@ -114,6 +114,9 @@ export const sitesCreateSubcommand = async (progress,doneIn: progress === 100 ? Date.now() - bundleStart : null,};+ if (progress === 100) {+ uploadStart = Date.now();+ }},onUploadProgress: (p) => {multiProgress.deployProgress = {