🎥 Make videos programmatically with React
import type {AwsRegion} from '@remotion/lambda-client';
import {
AWS_REGIONS,
DEFAULT_AWS_REGIONS,
} from '@remotion/lambda-client/regions';
type Options = {
enabledByDefaultOnly?: boolean;
};
/*
* @description Gets an array of all supported GCP regions of this release of Remotion Cloud Run.
* @see [Documentation](https://remotion.dev/docs/cloudrun/getregions)
*/
export const getRegions = (options?: Options): readonly AwsRegion[] => {
const onlyEnabledByDefault = options?.enabledByDefaultOnly ?? false;
return onlyEnabledByDefault ? DEFAULT_AWS_REGIONS : AWS_REGIONS;
};