Skip to content

🎥 Make videos programmatically with React

259 B
Raw Blame
import type {AwsRegion} from '@remotion/lambda-client';

export const getCurrentRegionInFunction = () => {
	if (!process.env.AWS_REGION) {
		throw new Error('Expected process.env.AWS_REGION to be defined');
	}

	return process.env.AWS_REGION as AwsRegion;
};