feat: pipe external urls through iframely

This commit is contained in:
Apoorv Mishra
2023-07-23 08:16:38 +05:30
parent 15c8a4867f
commit 43a91626b2
9 changed files with 98 additions and 13 deletions

View File

@@ -601,6 +601,24 @@ export class Environment {
this.AWS_S3_UPLOAD_MAX_SIZE
);
/**
* Iframely url
*/
@IsOptional()
@IsUrl({
require_tld: false,
allow_underscores: true,
protocols: ["http", "https"],
})
public IFRAMELY_URL = process.env.IFRAMELY_URL ?? "https://iframe.ly";
/**
* Iframely API key
*/
@IsOptional()
@CannotUseWithout("IFRAMELY_URL")
public IFRAMELY_API_KEY = this.toOptionalString(process.env.IFRAMELY_API_KEY);
/**
* The product name
*/