🎥 Make videos programmatically with React
Update TemplatePage.tsx
Jonny Burgerfbb2e7ee534f
diff --git a/packages/docs/src/components/TemplatePage.tsx b/packages/docs/src/components/TemplatePage.tsxindex 4726a0c0b9..450f980677 100644--- a/packages/docs/src/components/TemplatePage.tsx+++ b/packages/docs/src/components/TemplatePage.tsx@@ -28,6 +28,11 @@ export default () => {const template = CreateVideoInternals.FEATURED_TEMPLATES.find((e) => e.cliId === templatePathname[1]);+ // After Next.js is enabled we can throw an error instead+ if (!template) {+ return null;+ }+const imgSrc = `/generated/template-${template.cliId}.png`;return (