Skip to content

🎥 Make videos programmatically with React

Docs: Move to vercel.ts, use longer cache TTL to save money

Jonny Burgerc0e12b61c498
diff --git a/bun.lock b/bun.lock
index b5c75ee9fc..a08bb9a090 100644
--- a/bun.lock
+++ b/bun.lock
@@ -429,6 +429,7 @@
"@turf/turf": "7.3.2",
"@types/mapbox-gl": "3.4.1",
"@types/uuid": "^8.3.4",
+ "@vercel/config": "^0.0.28",
"@vercel/functions": "^3.1.4",
"chalk": "4.1.2",
"clipboard": "^2.0.8",
@@ -4526,6 +4527,8 @@
"@vanilla-extract/private": ["@vanilla-extract/[email protected]", "", {}, "sha512-ytsG/JLweEjw7DBuZ/0JCN4WAQgM9erfSTdS1NQY778hFQSZ6cfCDEZZ0sgVm4k54uNz6ImKB33AYvSR//fjxw=="],
+ "@vercel/config": ["@vercel/[email protected]", "", { "dependencies": { "pretty-cache-header": "^1.0.0", "zod": "^3.22.0" }, "bin": { "config": "dist/cli.js" } }, "sha512-lGnGmac05Rt+dYNwn6Rfub5GCnhSS33f3oQ3+1SSWw7zaI1gCaBDVetGtAIM5cMGG6UkGcRRSp1sw0dibS5wUQ=="],
+
"@vercel/functions": ["@vercel/[email protected]", "", { "dependencies": { "@vercel/oidc": "3.0.3" }, "peerDependencies": { "@aws-sdk/credential-provider-web-identity": "*" }, "optionalPeers": ["@aws-sdk/credential-provider-web-identity"] }, "sha512-1dEfZkb7qxsA+ilo+1uBUCEgr7e90vHcimpDYkUB84DM051wQ5amJDk9x+cnaI29paZb5XukXwGl8yk3Udb/DQ=="],
"@vercel/oidc": ["@vercel/[email protected]", "", {}, "sha512-yNEQvPcVrK9sIe637+I0jD6leluPxzwJKx/Haw6F4H77CdDsszUn5V3o96LPziXkSNE2B83+Z3mjqGKBK/R6Gg=="],
@@ -6658,6 +6661,8 @@
"prettier-plugin-organize-imports": ["[email protected]", "", { "peerDependencies": { "prettier": "3.6.0", "typescript": "5.8.2" } }, "sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog=="],
+ "pretty-cache-header": ["[email protected]", "", { "dependencies": { "timestring": "^6.0.0" } }, "sha512-xtXazslu25CdnGnUkByU1RoOjK55TqwatJkjjJLg5ZAdz2Lngko/mmaUgeET36P2GMlNwh3fdM7FWBO717pNcw=="],
+
"pretty-error": ["[email protected]", "", { "dependencies": { "lodash": "4.17.21", "renderkid": "3.0.0" } }, "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw=="],
"pretty-format": ["[email protected]", "", { "dependencies": { "ansi-regex": "5.0.1", "ansi-styles": "5.2.0", "react-is": "17.0.2" } }, "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ=="],
@@ -7290,6 +7295,8 @@
"thunky": ["[email protected]", "", {}, "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA=="],
+ "timestring": ["[email protected]", "", {}, "sha512-wMctrWD2HZZLuIlchlkE2dfXJh7J2KDI9Dwl+2abPYg0mswQHfOAyQW3jJg1pY5VfttSINZuKcXoB3FGypVklA=="],
+
"tiny-emitter": ["[email protected]", "", {}, "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="],
"tiny-inflate": ["[email protected]", "", {}, "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw=="],
@@ -9256,6 +9263,8 @@
"@vanilla-extract/integration/vite": ["[email protected]", "", { "dependencies": { "esbuild": "0.21.5", "postcss": "8.5.1", "rollup": "4.40.1" }, "optionalDependencies": { "fsevents": "2.3.3" }, "peerDependencies": { "@types/node": "20.12.14" }, "optionalPeers": ["@types/node"], "bin": { "vite": "bin/vite.js" } }, "sha512-j3lYzGC3P+B5Yfy/pfKNgVEg4+UtcIJcVRt2cDjIOmhLourAqPqf8P7acgxeiSgUB7E3p2P8/3gNIgDLpwzs4g=="],
+ "@vercel/config/zod": ["[email protected]", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
+
"@vercel/remix/isbot": ["[email protected]", "", {}, "sha512-vne1mzQUTR+qsMLeCBL9+/tgnDXRyc2pygLGl/WsgA+EZKIiB5Ehu0CiVTHIIk30zhJ24uGz4M5Ppse37aR0Hg=="],
"@vercel/remix/react": ["[email protected]", "", {}, "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ=="],
diff --git a/packages/docs/package.json b/packages/docs/package.json
index 377b02b985..b614ece55b 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -86,6 +86,7 @@
"@turf/turf": "7.3.2",
"@types/mapbox-gl": "3.4.1",
"@types/uuid": "^8.3.4",
+ "@vercel/config": "^0.0.28",
"@vercel/functions": "^3.1.4",
"chalk": "4.1.2",
"clipboard": "^2.0.8",
diff --git a/packages/docs/vercel.json b/packages/docs/vercel.json
deleted file mode 100644
index 56e4c3b63d..0000000000
--- a/packages/docs/vercel.json
+++ /dev/null
@@ -1,500 +0,0 @@
-{
- "headers": [
- {
- "source": "/_raw/docs/(.*).md",
- "headers": [
- {
- "key": "Content-Type",
- "value": "text/plain; charset=utf-8"
- },
- {
- "key": "Vary",
- "value": "Accept"
- }
- ]
- },
- {
- "source": "/img/gt-planar(.*)",
- "headers": [
- {"key": "Access-Control-Allow-Credentials", "value": "true"},
- {"key": "Access-Control-Allow-Origin", "value": "*"},
- {
- "key": "Access-Control-Allow-Methods",
- "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT"
- },
- {
- "key": "Access-Control-Allow-Headers",
- "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
- }
- ]
- },
- {
- "source": "/transcribe(.*)",
- "headers": [
- {
- "key": "Cross-Origin-Embedder-Policy",
- "value": "require-corp"
- },
- {
- "key": "Cross-Origin-Opener-Policy",
- "value": "same-origin"
- }
- ]
- },
- {
- "source": "/convert/assets/(.*)",
- "headers": [
- {
- "key": "Cross-Origin-Embedder-Policy",
- "value": "require-corp"
- },
- {
- "key": "Cross-Origin-Opener-Policy",
- "value": "same-origin"
- }
- ]
- }
- ],
- "redirects": [
- {
- "source": "/changelog",
- "destination": "https://github.com/remotion-dev/remotion/releases",
- "permanent": false
- },
- {
- "source": "/discord",
- "destination": "https://discord.gg/6VzzNDwUwV",
- "permanent": false
- },
- {
- "source": "/booking",
- "destination": "https://cal.com/remotion",
- "permanent": false
- },
- {
- "source": "/coc",
- "destination": "https://github.com/remotion-dev/remotion/blob/main/CODE-OF-CONDUCT.md",
- "permanent": false
- },
- {
- "source": "/license",
- "destination": "https://github.com/remotion-dev/remotion/blob/main/LICENSE.md",
- "permanent": false
- },
- {
- "source": "/timeout",
- "destination": "/docs/timeout",
- "permanent": false
- },
- {
- "source": "/acknowledgements",
- "destination": "/docs/acknowledgements",
- "permanent": false
- },
- {
- "source": "/issue",
- "destination": "https://github.com/remotion-dev/remotion/issues/new/choose",
- "permanent": false
- },
- {
- "source": "/skia",
- "destination": "/docs/skia",
- "permanent": false
- },
- {
- "source": "/gif",
- "destination": "/docs/gif",
- "permanent": false
- },
- {
- "source": "/lottie",
- "destination": "/docs/lottie",
- "permanent": false
- },
- {
- "source": "/paths",
- "destination": "/docs/paths",
- "permanent": false
- },
- {
- "source": "/shapes",
- "destination": "/docs/shapes",
- "permanent": false
- },
- {
- "source": "/api",
- "destination": "/docs/api",
- "permanent": false
- },
- {
- "source": "/terminology",
- "destination": "/docs/terminology",
- "permanent": false
- },
- {
- "source": "/hacktoberfest",
- "destination": "https://github.com/remotion-dev/remotion/issues/1365",
- "permanent": false
- },
- {
- "source": "/motion-blur",
- "destination": "/docs/motion-blur",
- "permanent": false
- },
- {
- "source": "/noise",
- "destination": "/docs/noise",
- "permanent": false
- },
- {
- "source": "/docs/get-audio-duration",
- "destination": "/docs/get-audio-duration-in-seconds",
- "permanent": true
- },
- {
- "source": "/docs/get-compositions",
- "destination": "/docs/renderer/get-compositions",
- "permanent": true
- },
- {
- "source": "/docs/stitch-frames-to-video",
- "destination": "/docs/renderer/stitch-frames-to-video",
- "permanent": true
- },
- {
- "source": "/docs/render-still",
- "destination": "/docs/renderer/render-still",
- "permanent": true
- },
- {
- "source": "/docs/render-frames",
- "destination": "/docs/renderer/render-frames",
- "permanent": true
- },
- {
- "source": "/docs/motion-blur/motion-blur",
- "destination": "/docs/motion-blur/trail",
- "permanent": true
- },
- {
- "source": "/support",
- "destination": "/docs/support",
- "permanent": true
- },
- {
- "source": "/webcodecs",
- "destination": "/docs/webcodecs",
- "permanent": true
- },
- {
- "source": "/docs/player/api",
- "destination": "/docs/player/player",
- "permanent": true
- },
- {
- "source": "/github",
- "destination": "https://github.com/remotion-dev/remotion",
- "permanent": false
- },
- {
- "source": "/brand",
- "destination": "https://github.com/remotion-dev/logo",
- "permanent": false
- },
- {
- "source": "/docs/lottie/after-effects",
- "destination": "/docs/after-effects",
- "permanent": false
- },
- {
- "source": "/docs/miscellaneous/render-all",
- "destination": "docs/render-all",
- "permanent": false
- },
- {
- "source": "/docs/overlays",
- "destination": "/docs/overlay",
- "permanent": false
- },
- {
- "source": "/docs/cli/preview",
- "destination": "/docs/cli/studio",
- "permanent": false
- },
- {
- "source": "/links",
- "destination": "https://linktr.ee/remotion",
- "permanent": false
- },
- {
- "source": "/contributing",
- "destination": "https://www.remotion.dev/docs/contributing",
- "permanent": false
- },
- {
- "source": "/resources",
- "destination": "https://www.remotion.dev/docs/resources",
- "permanent": false
- },
- {
- "source": "/rive",
- "destination": "https://www.remotion.dev/docs/rive",
- "permanent": false
- },
- {
- "source": "/zod-types",
- "destination": "https://www.remotion.dev/docs/zod-types",
- "permanent": false
- },
- {
- "source": "/cloudrun",
- "destination": "https://www.remotion.dev/docs/cloudrun",
- "permanent": false
- },
- {
- "source": "/layout-utils",
- "destination": "https://www.remotion.dev/docs/layout-utils",
- "permanent": false
- },
- {
- "source": "/animation-utils",
- "destination": "https://www.remotion.dev/docs/animation-utils",
- "permanent": false
- },
- {
- "source": "/get-help",
- "destination": "https://www.remotion.dev/docs/get-help",
- "permanent": false
- },
- {
- "source": "/help",
- "destination": "https://www.remotion.dev/docs/get-help",
- "permanent": false
- },
- {
- "source": "/ask-in-public",
- "destination": "https://www.remotion.dev/docs/ask-in-public",
- "permanent": false
- },
- {
- "source": "/native",
- "destination": "https://remotion.dev/docs/react-native",
- "permanent": false
- },
- {
- "source": "/docs/parametrized-rendering",
- "destination": "https://www.remotion.dev/docs/parameterized-rendering",
- "permanent": false
- },
- {
- "source": "/business",
- "destination": "https://github.com/orgs/remotion-dev/projects/10",
- "permanent": false
- },
- {
- "source": "/docs/thorium-browser",
- "destination": "/docs/miscellaneous/thorium-browser",
- "permanent": false
- },
- {
- "source": "/youtube",
- "destination": "https://youtube.com/@remotion_dev",
- "permanent": false
- },
- {
- "source": "/bun",
- "destination": "/docs/bun",
- "permanent": false
- },
- {
- "source": "/bounties",
- "destination": "/docs/contributing/bounty",
- "permanent": false
- },
- {
- "source": "/transitions",
- "destination": "/docs/transitioning",
- "permanent": false
- },
- {
- "source": "/repro",
- "destination": "https://stackblitz.com/fork/github/remotion-dev/template-helloworld",
- "permanent": false
- },
- {
- "source": "/templates/remix",
- "destination": "/templates/react-router",
- "permanent": false
- },
- {
- "source": "/studio",
- "destination": "/docs/studio",
- "permanent": false
- },
- {
- "source": "/security",
- "destination": "/docs/security",
- "permanent": false
- },
- {
- "source": "/accessibility",
- "destination": "/docs/accessibility",
- "permanent": false
- },
- {
- "source": "/custom-controls",
- "destination": "/docs/player/custom-controls",
- "permanent": false
- },
- {
- "source": "/drag-and-drop",
- "destination": "/docs/player/drag-and-drop/",
- "permanent": false
- },
- {
- "source": "/standalone",
- "destination": "/docs/standalone",
- "permanent": false
- },
- {
- "source": "/docs/deploy-studio",
- "destination": "/docs/studio/deploy-server",
- "permanent": false
- },
- {
- "source": "/blog/faster-lambda-renders",
- "destination": "/blog/faster-lambda",
- "permanent": false
- },
- {
- "source": "/docs/miscellaneous/thorium-browser",
- "destination": "/docs/miscellaneous/chrome-headless-shell",
- "permanent": false
- },
- {
- "source": "/chrome-headless-shell",
- "destination": "/docs/miscellaneous/chrome-headless-shell",
- "permanent": false
- },
- {
- "source": "/chrome-for-testing",
- "destination": "/docs/miscellaneous/chrome-headless-shell#using-chrome-for-testing-instead",
- "permanent": false
- },
- {
- "source": "/media-parser",
- "destination": "/docs/media-parser",
- "permanent": false
- },
- {
- "source": "/editor-starter",
- "destination": "/docs/editor-starter",
- "permanent": false
- },
- {
- "source": "/docs/system-prompt",
- "destination": "/docs/ai/system-prompt",
- "permanent": false
- },
- {
- "source": "/media-parser/",
- "destination": "/docs/media-parser",
- "permanent": false
- },
- {
- "source": "/docs/chrome-headless-shell",
- "destination": "/docs/miscellaneous/chrome-headless-shell",
- "permanent": false
- },
- {
- "source": "/docs/audio-visualization",
- "destination": "/docs/audio/visualization",
- "permanent": false
- },
- {
- "source": "/recorder",
- "destination": "/docs/recorder",
- "permanent": false
- },
- {
- "source": "/install-whisper-cpp",
- "destination": "/docs/install-whisper-cpp",
- "permanent": false
- },
- {
- "source": "/captions",
- "destination": "/docs/captions",
- "permanent": false
- },
- {
- "source": "/docs/miscellaneous/snippets/adding-animations",
- "destination": "/docs/animation-math",
- "permanent": false
- },
- {
- "source": "/docs/video-vs-offthreadvideo",
- "destination": "/docs/video-tags",
- "permanent": false
- },
- {
- "source": "/bbb.webm",
- "destination": "https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.720p.vp9.webm",
- "permanent": false
- },
- {
- "source": "/bbb.mp4",
- "destination": "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
- "permanent": false
- },
- {
- "source": "/leads",
- "destination": "https://github.com/orgs/remotion-dev/projects/15/views/1",
- "permanent": false
- },
- {
- "source": "/discord-blue-badges",
- "destination": "https://github.com/remotion-dev/business/issues/347",
- "permanent": false
- },
- {
- "source": "/content",
- "destination": "https://github.com/orgs/remotion-dev/projects/16/views/1?layout=board",
- "permanent": false
- },
- {
- "source": "/docs/snippets/fps-converter",
- "destination": "/docs/multiple-fps",
- "permanent": false
- },
- {
- "source": "/docs/miscellaneous/vercel-functions",
- "destination": "/docs/miscellaneous/vercel",
- "permanent": false
- },
- {
- "source": "/system-prompt",
- "destination": "/docs/ai/system-prompt",
- "permanent": false
- },
- {
- "source": "/investors",
- "destination": "/docs/investors",
- "permanent": false
- },
- {
- "destination": "/docs/video-tags#using-a-different-tag-in-preview-and-rendering",
- "permanent": false,
- "source": "/docs/miscellaneous/snippets/offthread-video-while-rendering"
- },
- {
- "source": "/docs/video",
- "destination": "/docs/html5-video",
- "permanent": false
- },
- {
- "source": "/docs/audio",
- "destination": "/docs/html5-audio",
- "permanent": false
- }
- ]
-}
diff --git a/packages/docs/vercel.ts b/packages/docs/vercel.ts
new file mode 100644
index 0000000000..4a77fc587b
--- /dev/null
+++ b/packages/docs/vercel.ts
@@ -0,0 +1,318 @@
+import {routes, type VercelConfig} from '@vercel/config/v1';
+
+export const config: VercelConfig = {
+ headers: [
+ routes.cacheControl('/assets/(.*)', {
+ public: true,
+ maxAge: '365days',
+ immutable: true,
+ }),
+ routes.header('/_raw/docs/(.*).md', [
+ {key: 'Content-Type', value: 'text/plain; charset=utf-8'},
+ {key: 'Vary', value: 'Accept'},
+ ]),
+ routes.header('/img/gt-planar(.*)', [
+ {key: 'Access-Control-Allow-Credentials', value: 'true'},
+ {key: 'Access-Control-Allow-Origin', value: '*'},
+ {
+ key: 'Access-Control-Allow-Methods',
+ value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT',
+ },
+ {
+ key: 'Access-Control-Allow-Headers',
+ value:
+ 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version',
+ },
+ ]),
+ routes.header('/transcribe(.*)', [
+ {key: 'Cross-Origin-Embedder-Policy', value: 'require-corp'},
+ {key: 'Cross-Origin-Opener-Policy', value: 'same-origin'},
+ ]),
+ routes.header('/convert/assets/(.*)', [
+ {key: 'Cross-Origin-Embedder-Policy', value: 'require-corp'},
+ {key: 'Cross-Origin-Opener-Policy', value: 'same-origin'},
+ ]),
+ ],
+ redirects: [
+ routes.redirect(
+ '/changelog',
+ 'https://github.com/remotion-dev/remotion/releases',
+ {permanent: false},
+ ),
+ routes.redirect('/discord', 'https://discord.gg/6VzzNDwUwV', {
+ permanent: false,
+ }),
+ routes.redirect('/booking', 'https://cal.com/remotion', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/coc',
+ 'https://github.com/remotion-dev/remotion/blob/main/CODE-OF-CONDUCT.md',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/license',
+ 'https://github.com/remotion-dev/remotion/blob/main/LICENSE.md',
+ {permanent: false},
+ ),
+ routes.redirect('/timeout', '/docs/timeout', {permanent: false}),
+ routes.redirect('/acknowledgements', '/docs/acknowledgements', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/issue',
+ 'https://github.com/remotion-dev/remotion/issues/new/choose',
+ {permanent: false},
+ ),
+ routes.redirect('/skia', '/docs/skia', {permanent: false}),
+ routes.redirect('/gif', '/docs/gif', {permanent: false}),
+ routes.redirect('/lottie', '/docs/lottie', {permanent: false}),
+ routes.redirect('/paths', '/docs/paths', {permanent: false}),
+ routes.redirect('/shapes', '/docs/shapes', {permanent: false}),
+ routes.redirect('/api', '/docs/api', {permanent: false}),
+ routes.redirect('/terminology', '/docs/terminology', {permanent: false}),
+ routes.redirect(
+ '/hacktoberfest',
+ 'https://github.com/remotion-dev/remotion/issues/1365',
+ {permanent: false},
+ ),
+ routes.redirect('/motion-blur', '/docs/motion-blur', {permanent: false}),
+ routes.redirect('/noise', '/docs/noise', {permanent: false}),
+ routes.redirect(
+ '/docs/get-audio-duration',
+ '/docs/get-audio-duration-in-seconds',
+ {permanent: true},
+ ),
+ routes.redirect(
+ '/docs/get-compositions',
+ '/docs/renderer/get-compositions',
+ {permanent: true},
+ ),
+ routes.redirect(
+ '/docs/stitch-frames-to-video',
+ '/docs/renderer/stitch-frames-to-video',
+ {permanent: true},
+ ),
+ routes.redirect('/docs/render-still', '/docs/renderer/render-still', {
+ permanent: true,
+ }),
+ routes.redirect('/docs/render-frames', '/docs/renderer/render-frames', {
+ permanent: true,
+ }),
+ routes.redirect(
+ '/docs/motion-blur/motion-blur',
+ '/docs/motion-blur/trail',
+ {
+ permanent: true,
+ },
+ ),
+ routes.redirect('/support', '/docs/support', {permanent: true}),
+ routes.redirect('/webcodecs', '/docs/webcodecs', {permanent: true}),
+ routes.redirect('/docs/player/api', '/docs/player/player', {
+ permanent: true,
+ }),
+ routes.redirect('/github', 'https://github.com/remotion-dev/remotion', {
+ permanent: false,
+ }),
+ routes.redirect('/brand', 'https://github.com/remotion-dev/logo', {
+ permanent: false,
+ }),
+ routes.redirect('/docs/lottie/after-effects', '/docs/after-effects', {
+ permanent: false,
+ }),
+ routes.redirect('/docs/miscellaneous/render-all', 'docs/render-all', {
+ permanent: false,
+ }),
+ routes.redirect('/docs/overlays', '/docs/overlay', {permanent: false}),
+ routes.redirect('/docs/cli/preview', '/docs/cli/studio', {
+ permanent: false,
+ }),
+ routes.redirect('/links', 'https://linktr.ee/remotion', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/contributing',
+ 'https://www.remotion.dev/docs/contributing',
+ {permanent: false},
+ ),
+ routes.redirect('/resources', 'https://www.remotion.dev/docs/resources', {
+ permanent: false,
+ }),
+ routes.redirect('/rive', 'https://www.remotion.dev/docs/rive', {
+ permanent: false,
+ }),
+ routes.redirect('/zod-types', 'https://www.remotion.dev/docs/zod-types', {
+ permanent: false,
+ }),
+ routes.redirect('/cloudrun', 'https://www.remotion.dev/docs/cloudrun', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/layout-utils',
+ 'https://www.remotion.dev/docs/layout-utils',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/animation-utils',
+ 'https://www.remotion.dev/docs/animation-utils',
+ {permanent: false},
+ ),
+ routes.redirect('/get-help', 'https://www.remotion.dev/docs/get-help', {
+ permanent: false,
+ }),
+ routes.redirect('/help', 'https://www.remotion.dev/docs/get-help', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/ask-in-public',
+ 'https://www.remotion.dev/docs/ask-in-public',
+ {permanent: false},
+ ),
+ routes.redirect('/native', 'https://remotion.dev/docs/react-native', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/docs/parametrized-rendering',
+ 'https://www.remotion.dev/docs/parameterized-rendering',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/business',
+ 'https://github.com/orgs/remotion-dev/projects/10',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/docs/thorium-browser',
+ '/docs/miscellaneous/thorium-browser',
+ {permanent: false},
+ ),
+ routes.redirect('/youtube', 'https://youtube.com/@remotion_dev', {
+ permanent: false,
+ }),
+ routes.redirect('/bun', '/docs/bun', {permanent: false}),
+ routes.redirect('/bounties', '/docs/contributing/bounty', {
+ permanent: false,
+ }),
+ routes.redirect('/transitions', '/docs/transitioning', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/repro',
+ 'https://stackblitz.com/fork/github/remotion-dev/template-helloworld',
+ {permanent: false},
+ ),
+ routes.redirect('/templates/remix', '/templates/react-router', {
+ permanent: false,
+ }),
+ routes.redirect('/studio', '/docs/studio', {permanent: false}),
+ routes.redirect('/security', '/docs/security', {permanent: false}),
+ routes.redirect('/accessibility', '/docs/accessibility', {
+ permanent: false,
+ }),
+ routes.redirect('/custom-controls', '/docs/player/custom-controls', {
+ permanent: false,
+ }),
+ routes.redirect('/drag-and-drop', '/docs/player/drag-and-drop/', {
+ permanent: false,
+ }),
+ routes.redirect('/standalone', '/docs/standalone', {permanent: false}),
+ routes.redirect('/docs/deploy-studio', '/docs/studio/deploy-server', {
+ permanent: false,
+ }),
+ routes.redirect('/blog/faster-lambda-renders', '/blog/faster-lambda', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/docs/miscellaneous/thorium-browser',
+ '/docs/miscellaneous/chrome-headless-shell',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/chrome-headless-shell',
+ '/docs/miscellaneous/chrome-headless-shell',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/chrome-for-testing',
+ '/docs/miscellaneous/chrome-headless-shell#using-chrome-for-testing-instead',
+ {permanent: false},
+ ),
+ routes.redirect('/media-parser', '/docs/media-parser', {
+ permanent: false,
+ }),
+ routes.redirect('/editor-starter', '/docs/editor-starter', {
+ permanent: false,
+ }),
+ routes.redirect('/docs/system-prompt', '/docs/ai/system-prompt', {
+ permanent: false,
+ }),
+ routes.redirect('/media-parser/', '/docs/media-parser', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/docs/chrome-headless-shell',
+ '/docs/miscellaneous/chrome-headless-shell',
+ {permanent: false},
+ ),
+ routes.redirect('/docs/audio-visualization', '/docs/audio/visualization', {
+ permanent: false,
+ }),
+ routes.redirect('/recorder', '/docs/recorder', {permanent: false}),
+ routes.redirect('/install-whisper-cpp', '/docs/install-whisper-cpp', {
+ permanent: false,
+ }),
+ routes.redirect('/captions', '/docs/captions', {permanent: false}),
+ routes.redirect(
+ '/docs/miscellaneous/snippets/adding-animations',
+ '/docs/animation-math',
+ {permanent: false},
+ ),
+ routes.redirect('/docs/video-vs-offthreadvideo', '/docs/video-tags', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/bbb.webm',
+ 'https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.720p.vp9.webm',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/bbb.mp4',
+ 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/leads',
+ 'https://github.com/orgs/remotion-dev/projects/15/views/1',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/discord-blue-badges',
+ 'https://github.com/remotion-dev/business/issues/347',
+ {permanent: false},
+ ),
+ routes.redirect(
+ '/content',
+ 'https://github.com/orgs/remotion-dev/projects/16/views/1?layout=board',
+ {permanent: false},
+ ),
+ routes.redirect('/docs/snippets/fps-converter', '/docs/multiple-fps', {
+ permanent: false,
+ }),
+ routes.redirect(
+ '/docs/miscellaneous/vercel-functions',
+ '/docs/miscellaneous/vercel',
+ {permanent: false},
+ ),
+ routes.redirect('/system-prompt', '/docs/ai/system-prompt', {
+ permanent: false,
+ }),
+ routes.redirect('/investors', '/docs/investors', {permanent: false}),
+ routes.redirect(
+ '/docs/miscellaneous/snippets/offthread-video-while-rendering',
+ '/docs/video-tags#using-a-different-tag-in-preview-and-rendering',
+ {permanent: false},
+ ),
+ routes.redirect('/docs/video', '/docs/html5-video', {permanent: false}),
+ routes.redirect('/docs/audio', '/docs/html5-audio', {permanent: false}),
+ ],
+};