🎥 Make videos programmatically with React
fix "sites" returning subfolders
Jonny Burger57a602229141
diff --git a/packages/docs/docs/lambda-changelog.md b/packages/docs/docs/lambda-changelog.mdindex 7a99a2ea3f..025d5b7d5c 100644--- a/packages/docs/docs/lambda-changelog.md+++ b/packages/docs/docs/lambda-changelog.md@@ -19,6 +19,7 @@ Keep track of changes to the APIs of Remotion Lambda here.- `renderStillOnLambda()` returns a `renderId` now- Documented `downloadVideo()` method- `downloadVideo()` return value property renamed from `size` to `sizeInBytes`+- Command `npx remotion lambda sites ls` now supports `-q` flag## October 29th, 2021diff --git a/packages/lambda/src/api/get-sites.ts b/packages/lambda/src/api/get-sites.tsindex 7d5636a8c8..8604a598ad 100644--- a/packages/lambda/src/api/get-sites.ts+++ b/packages/lambda/src/api/get-sites.ts@@ -37,10 +37,10 @@ export const getSites = async ({});for (const file of ls) {- const siteKeyMatch = file.Key?.match(/sites\/(.*)\/(.*)$/);+ const siteKeyMatch = file.Key?.match(/sites\/([0-9a-zA-Z]+)\/(.*)$/);if (!siteKeyMatch) {throw new Error(- `An file was found in the bucket "${bucket.name}" with the key ${file.Key} which is an unexpected folder structure. Delete this file.`+ `A file was found in the bucket "${bucket.name}" with the key ${file.Key} which is an unexpected folder structure. Delete this file.`);}