Skip to content

Commit

Permalink
Adding colo id for bucket requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoe-cf authored and fhanau committed May 30, 2024
1 parent a20abf8 commit 1a99c34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions types/defines/cf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ interface RequestInitCfProperties extends Record<string, unknown> {
minify?: RequestInitCfPropertiesImageMinify;
mirage?: boolean;
polish?: "lossy" | "lossless" | "off";
r2?: RequestInitCfPropertiesR2;
/**
* Redirects the request to an alternate origin server. You can use this,
* for example, to implement load balancing across several origins.
Expand Down Expand Up @@ -300,6 +301,13 @@ interface RequestInitCfPropertiesImageMinify {
html?: boolean;
}

interface RequestInitCfPropertiesR2 {
/**
* Colo id of bucket that an object is stored in
*/
bucketColoId?: number;
}

/**
* Request metadata provided by Cloudflare's edge.
*/
Expand Down

0 comments on commit 1a99c34

Please sign in to comment.