🎥 Make videos programmatically with React
add JSDoc for getSites
Jonny Burger02ebf57dd830
diff --git a/packages/docs/docs/lambda/getsites.md b/packages/docs/docs/lambda/getsites.mdindex 47520df717..7647255e63 100644--- a/packages/docs/docs/lambda/getsites.md+++ b/packages/docs/docs/lambda/getsites.md@@ -72,7 +72,7 @@ The combined size of all files in that project.#### `serveUrl`-URL of the deployed site. You can pass it into `renderMediaOnLambda()` to render a video or audio.+URL of the deployed site. You can pass it into [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) to render a video or audio.### `buckets`diff --git a/packages/lambda/src/api/get-sites.ts b/packages/lambda/src/api/get-sites.tsindex 966a021b2c..e3b6a85bb2 100644--- a/packages/lambda/src/api/get-sites.ts+++ b/packages/lambda/src/api/get-sites.ts@@ -18,8 +18,13 @@ type GetSitesReturnValue = {buckets: BucketWithLocation[];};-// TODO: Return the `serveUrl` as well-// TODO: Add JSDoc comments+/**+ *+ * @description Gets all the deployed sites for a certain AWS region.+ * @link https://remotion-3.vercel.app/docs/lambda/getsites+ * @param {AwsRegion} params.region The AWS region that you want to query for.+ * @returns A Promise containing an object with `sites` and `bucket` keys. Consult documentation for details.+ */export const getSites = async ({region,}: {