🎥 Make videos programmatically with React
Add `type: module` package.json to sandbox to fix MODULE_TYPELESS_PACKAGE_JSON warning
Jonny Burger63a3ef040fcc
diff --git a/packages/template-vercel/src/app/api/render/sandbox/create-sandbox.ts b/packages/template-vercel/src/app/api/render/sandbox/create-sandbox.tsindex 0044268f19..d94b325ae5 100644--- a/packages/template-vercel/src/app/api/render/sandbox/create-sandbox.ts+++ b/packages/template-vercel/src/app/api/render/sandbox/create-sandbox.ts@@ -97,6 +97,10 @@ export async function createSandbox({path: "render.ts",content: renderScript,},+ {+ path: "package.json",+ content: JSON.stringify({ type: "module" }),+ },]);return sandbox;