🎥 Make videos programmatically with React
cleanup logs
Jonny Burger8c1822c28841
diff --git a/packages/template-prompt-to-motion-graphics/src/app/api/generate/route.ts b/packages/template-prompt-to-motion-graphics/src/app/api/generate/route.tsindex 1820a23936..d3bbfe80e9 100644--- a/packages/template-prompt-to-motion-graphics/src/app/api/generate/route.ts+++ b/packages/template-prompt-to-motion-graphics/src/app/api/generate/route.ts@@ -36,7 +36,6 @@ INVALID prompts include:Return true if the prompt is valid for motion graphics generation, false otherwise.`;-const SYSTEM_PROMPT = `You are an expert in generating React components for Remotion animations.@@ -106,7 +105,6 @@ NEVER use these as variable names - they shadow imports:`;-export async function POST(req: Request) {const { prompt, model = "gpt-5-mini" } = await req.json();@@ -139,8 +137,6 @@ export async function POST(req: Request) {schema: z.object({ valid: z.boolean() }),});- console.log("Validation result:", validationResult.object.valid ? "valid" : "invalid");-if (!validationResult.object.valid) {return new Response(JSON.stringify({diff --git a/packages/template-prompt-to-motion-graphics/src/components/Header.tsx b/packages/template-prompt-to-motion-graphics/src/components/Header.tsxindex f2a42dbc30..bda130957e 100644--- a/packages/template-prompt-to-motion-graphics/src/components/Header.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/Header.tsx@@ -1,3 +1,4 @@+/* eslint-disable @next/next/no-img-element */import Image from "next/image";import Link from "next/link";@@ -8,7 +9,13 @@ interface HeaderProps {export function Header({ asLink = false }: HeaderProps) {const content = (<div className="flex items-center gap-3">- <Image src="/logo-white.svg" alt="Remotion" width={32} height={32} />+ <img+ src="/logo-white.svg"+ alt="Remotion"+ style={{+ width: 32,+ }}+ /><span className="text-xl font-bold text-white font-sans">Remotion - Prompt to Motion Graphics</span>