Skip to content

Commit 2f353de

Browse files
fix(deploy): install @remotion/lambda so the Vercel build resolves the cloud-render routes
The /api/render/lambda routes import `@remotion/lambda/client`, but the package was never added to apps/web — Turbopack failed with "Module not found: @remotion/lambda/client", which is a hard build error that blocked the Vercel deploy before any runtime env var is read. - Add @remotion/lambda@4.0.459 (pinned to match the other @Remotion deps) - Externalize it in next.config so Turbopack doesn't bundle its native side Verified `next build` succeeds. Note: the Lambda RENDER additionally needs AWS env vars set in the Vercel dashboard (REMOTION_AWS_REGION, REMOTION_LAMBDA_SERVE_URL, REMOTION_LAMBDA_FUNCTION_NAME, AWS creds) — those are a runtime concern, not a build/deploy blocker.
1 parent 791589a commit 2f353de

4 files changed

Lines changed: 223 additions & 1 deletion

File tree

apps/web/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/web/next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const nextConfig = {
1111
// Turbopack try (and fail) to resolve every platform's binary statically,
1212
// so it must be externalized and loaded from node_modules at runtime.
1313
"@remotion/renderer",
14+
// @remotion/lambda ships native/AWS deps; the /api/render/lambda routes
15+
// only use the lightweight `@remotion/lambda/client` entry, but externalize
16+
// the package so Turbopack doesn't try to bundle its native side.
17+
"@remotion/lambda",
1418
"@remotion/tailwind-v4",
1519
"@tailwindcss/webpack",
1620
"@tailwindcss/node",

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@mdx-js/react": "^3.1.1",
3030
"@next/mdx": "^16.2.5",
3131
"@remotion/bundler": "4.0.459",
32+
"@remotion/lambda": "4.0.459",
3233
"@remotion/player": "4.0.459",
3334
"@remotion/renderer": "4.0.459",
3435
"@remotion/tailwind-v4": "4.0.459",

0 commit comments

Comments
 (0)