🎥 Make videos programmatically with React
feat: update 'Editor Starter' template to use dynamic preview URL in selection logic
Shankhadeep Dey17ceda57fe0b
diff --git a/packages/create-video/src/init.ts b/packages/create-video/src/init.tsindex dfd0b6a465..64e134a527 100644--- a/packages/create-video/src/init.ts+++ b/packages/create-video/src/init.ts@@ -95,7 +95,7 @@ export const init = async () => {Log.newLine();Log.info(`${chalk.yellow('Editor Starter is a paid template.')}\nGet it here: ${chalk.underline(- 'https://www.remotion.pro/editor-starter',+ selectedTemplate.previewURL,)}`,);Log.newLine();diff --git a/packages/create-video/src/select-template.ts b/packages/create-video/src/select-template.tsindex b6097b7f0e..a38078370a 100644--- a/packages/create-video/src/select-template.ts+++ b/packages/create-video/src/select-template.ts@@ -49,7 +49,10 @@ export const selectTemplate = async () => {` ${chalk.gray(template.description.trim())} ${chalk.gray(makeHyperlink({text: '(?)',- url: `https://remotion.dev/templates/${template.cliId}`,+ url:+ template.cliId === 'editor-starter'+ ? `${template.previewURL}`+ : `https://remotion.dev/templates/${template.cliId}`,fallback: '',}),)}`,diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.tsindex 0960a0b37a..ac76e0c8af 100644--- a/packages/create-video/src/templates.ts+++ b/packages/create-video/src/templates.ts@@ -502,7 +502,6 @@ export const PAID_TEMPLATES = [cliId: 'editor-starter' as const,defaultBranch: 'main',- previewURL: 'https://editor-starter.remotion.dev/',- purchaseURL: 'https://www.remotion.pro/editor-starter',+ previewURL: 'https://www.remotion.pro/editor-starter',},].filter(truthy);