Skip to content

TypeScript API / contentia/assets/r2 / R2AssetsRepositoryOptions

Type Alias: R2AssetsRepositoryOptions ​

ts
type R2AssetsRepositoryOptions = 
  | {
  bucket: R2Bucket;
  createUrl?: (key) => string;
  createVariations?: (key) => Record<string, AssetVariation>;
  sanitizer: Sanitizer;
}
  | {
  bucket: R2Bucket;
  createUrl?: (key) => string;
  createVariations?: (key) => Record<string, AssetVariation>;
  dangerouslyAllowAllFiles: true;
};